Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new step Signature that will format function signatures #350

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

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

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