packages feed

fourmolu-0.0.6.0: data/examples/declaration/value/pattern-synonyms/unidirectional.hs

{-# LANGUAGE PatternSynonyms #-}

pattern Head x <- x:xs

pattern Head' x
  <- x:xs

pattern Head''{x}
  <- x:xs

pattern FirstTwo{x,y}
  <- x : (y : xs)

pattern FirstTwo'{x
                 , y} <- x : (y:xs)

pattern Simple <- "Simple"

pattern WithTypeSig :: String
pattern WithTypeSig <- "WithTypeSig"