Skip to content

Instantly share code, notes, and snippets.

@LivewareIssue
LivewareIssue / Parsing.lhs
Created February 12, 2020 16:20
Monadic Parser-Combinators Reference
- 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