Skip to content

Conversation

@haasn
Copy link

@haasn haasn commented Apr 18, 2020

Since GHC 7.10 (base 4.8), Applicative became a member of Prelude, which
means we can access the wonderfully short function pure to shave off
one character (while also not printing anything).

Since GHC 7.10 (base 4.8), Applicative became a member of Prelude, which
means we can access the wonderfully short function `pure` to shave off
one character (while also not printing anything).
@haasn
Copy link
Author

haasn commented Apr 18, 2020

Note that this is not strictly speaking standards compliant if you want to limit yourself to the latest "stable" language spec (Haskell 2010), but both the Haskell Prime and Haskell 2020 WIP drafts include this function, and GHC is the de-facto standard anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant