We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, with this:
data FooBar = Foo {x :: Int, _y :: Char} | Bar {x :: Int} showFoo :: FooBar -> String showFoo Foo {_y = y} = "Foo with " ++ show y showFoo Bar {} = "Not foo"
we could add any number of fields to Foo and Bar without having to modify showFoo at all.
Foo
Bar
showFoo
The text was updated successfully, but these errors were encountered:
OK, I was not aware of that, looks useful, and we can generalize its use.
Sorry, something went wrong.
similarly for annotations, we can have { getType : … , getPos : … }
{ getType : … , getPos : … }
anka-213
inariksit
Martin-Strecker
2jacobtan
No branches or pull requests
For example, with this:
we could add any number of fields to
Foo
andBar
without having to modifyshowFoo
at all.The text was updated successfully, but these errors were encountered: