Open haasn opened 4 years ago
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.
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).