1 {-# LANGUAGE NamedFieldPuns #-}
2 {-# LANGUAGE FlexibleInstances #-}
3 {-# LANGUAGE OverloadedStrings #-}
4 module Hcompta.CLI.Context where
6 import Control.Monad (Monad(..))
8 import Data.String (String)
10 import Data.Maybe (Maybe(..))
12 import Text.Show (Show)
13 import Prelude (($), (.), Bounded(..), Enum(..), IO)
15 import Hcompta.CLI.Lang (Lang)
16 import qualified Hcompta.CLI.Lang as Lang
22 { verbosity :: Verbosity
33 { verbosity = Verbosity_Info
44 deriving (Bounded, Enum, Eq, Ord, Show)
46 translate :: Lang.Translate f t => Context -> f -> t
47 translate = Lang.translate . lang