Reason Native
  • Docs
  • Help
  • GitHub

›Refmterr

Overview

  • Introduction
  • Native Basics
  • Getting Started

Rely

  • Introduction
  • Quickstart
  • Guides

    • Setup and Teardown
    • Mock Functions

    API Reference

    • Basic API
    • Expect
  • Advanced

Console

  • Introduction
  • Quickstart
  • API

Pastel

  • Introduction
  • Quickstart
  • API
  • Console

Refmterr

  • Introduction
  • Quickstart

File Context Printer

  • Introduction
  • Quickstart
  • API

Refmterr Quickstart

This quickstart builds off Getting Started and assumes you have a native Reason project set up.

Install Refmterr

To install Refmterr in your project with esy, run

esy add refmterr

This will add refmterr into your package.json.

Add to Build Pipeline

This is already done for you if you followed Getting Started!

In order to use Pastel, you must add it to your build pipeline. With dune, this is easily done by adding it to your package.json build command:

{
  "esy": {
    "build":  "refmterr dune build",
    // ...
  },
  // ...
}

Command line usage

You can wrap any command that outputs ocamlopt/ocamlc error messages. For example, from your sandboxed project with the above package.json, you could run:

esy refmterr ocamlopt -pp refmt someFile.re

and have any errors/warnings printed more readably.

← IntroductionIntroduction →
  • Install Refmterr
  • Add to Build Pipeline
  • Command line usage
Reason Native
Projects
RelyConsolePastelRefmterrFile Context Printer
More
GitHubStar
Facebook Open Source
Copyright © 2021 Facebook Inc.