tilia-0.2.0.0: corpora/vendored/lexical/view-pattern-beginning-with-a-label.hs
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE ViewPatterns #-}
-- With unboxed tuples on, a view pattern that begins with a label keeps the
-- space after an opening parenthesis, in brackets and in a tuple alike.
module Form.Match where
named ( #name -> n ) = n
paired ( #first -> f, #last -> l ) = f <> l
fallback ( #nickname `orElse` #name -> n ) = n