Skip to content

Conversation

EncodePanda
Copy link
Contributor

@EncodePanda EncodePanda commented Feb 3, 2021

Adds a new step to format function signatures

Example:

    input = unlines
      [ "module Herp where"
      , ""
      , "fooBar :: a -> b -> a"
      , "fooBar v _ = v"
      ]
    expected = unlines
      [ "module Herp where"
      , ""
      , "fooBar ::"
      , "     a"
      , "  -> b"
      , "  -> a"
      , "fooBar v _ = v"
      ]

For more examples please see the test suite.

This step is heavily
inspired by https://github.com/input-output-hk/ouroboros-network/blob/bf8579cc2ff2a7bc4ba23150eff659cfd1c6ccca/ouroboros-consensus/docs/StyleGuide.md

@EncodePanda EncodePanda added the wip Work In Progress label Feb 3, 2021
@EncodePanda EncodePanda marked this pull request as draft February 15, 2021 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant