Skip to content

Instantly share code, notes, and snippets.

@hcarty
Created October 3, 2017 19:05
Show Gist options
  • Select an option

  • Save hcarty/eb755c6b3568a7b30daa55385b8a35bc to your computer and use it in GitHub Desktop.

Select an option

Save hcarty/eb755c6b3568a7b30daa55385b8a35bc to your computer and use it in GitHub Desktop.
refmt >>= examples

Using 1.13.7

$ echo 'x >>= fun y -> y >>= fun z -> a' | refmt --parse=ml --print=re -w 10
x
>>= (
  fun
  y =>
    y
    >>= (
     fun z => a
    )
);

Using master from a few days ago

$ echo 'x >>= fun y -> y >>= fun z -> a' | refmt --parse=ml --print=re -w 10
x
>>= (
  (y) =>
    y
    >>= (
     (z) => a
    )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment