ermine-0.6: Ermine

Copyright(c) Dan Doel 2013
LicenseBSD3
MaintainerDan Doel <dan.doel@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Ermine.Pretty.Pattern

Description

 

Documentation

prettyPattern :: Applicative f => Pattern t -> [String] -> Int -> (t -> Int -> f Doc) -> (HashMap PatternPath String, f Doc) Source

lambdaPatterns :: Applicative f => [Pattern t] -> [String] -> (t -> Int -> f Doc) -> (HashMap PatternPath String, f Doc) Source

prettyGuarded :: Applicative f => Guarded tm -> Doc -> (tm -> f Doc) -> f Doc Source

prettyAlt :: Applicative f => [String] -> (forall r. g r -> [String] -> Int -> (r -> Int -> f Doc) -> f Doc) -> (t -> Int -> f Doc) -> (v -> Int -> f Doc) -> Alt t g v -> f Doc Source