This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Imports and Language Extensions - | |
> {-# LANGUAGE LambdaCase #-} | |
Enables the 'LambdaCase' language-extension which introduces new syntactic sugar | |
example :: Double -> Double | |
example = \case | |
0 -> 0 | |
x -> 1/x |
NewerOlder