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 Introduction

Refmterr is an error formatter for Reason and OCaml builds. It takes raw error output from both the Reason and OCaml compilers and converts it to pretty output like so:

## Before ##

File "type_AppliedTooMany_3.ml", line 11, characters 5-30:
Error: The function applied to this argument has type
         customLogOutputProcessors:(string -> string) list ->
         customErrorParsers:(string * string list) list -> unit
This argument cannot be applied with label ~raiseExceptionDuringParse
 ## After ##

 ERROR  type_AppliedTooMany_3.ml:11 5-30

 8 โ”† let _ =
 9 โ”†   parseFromStdin
10 โ”†     ~refmttypePath
11 โ”†     ~raiseExceptionDuringParse=true
12 โ”†     ~customLogOutputProcessors=[]
13 โ”†     ~customErrorParsers:[]

The function has type (
  ~customLogOutputProcessors: list(string => string),
  ~customErrorParsers: list((string, list(string)))
) =>
unit

This function doesn't accept an argument named ~raiseExceptionDuringParse.
โ† ConsoleQuickstart โ†’
Reason Native
Projects
RelyConsolePastelRefmterrFile Context Printer
More
GitHubStar
Facebook Open Source
Copyright ยฉ 2021 Facebook Inc.