packages feed

tilia-0.2.0.0: corpora/vendored/expression/block/case-in-if-branches-out.hs

module Parcel.Label where

label :: Bool -> Maybe String -> String
label express recipient =
  if express
    then case recipient of
      Just r -> "URGENT: " ++ r
      Nothing -> "URGENT"
    else case recipient of
      Just r -> r
      Nothing -> "unaddressed"