1 {-# LANGUAGE DeriveDataTypeable #-}
2 {-# LANGUAGE GeneralizedNewtypeDeriving #-}
3 {-# LANGUAGE OverloadedStrings #-}
4 module Hcompta.Model.Amount.Unit where
7 import Data.String (IsString)
8 import qualified Data.Text as Text
9 import Data.Text (Text)
10 import Data.Typeable ()
12 import qualified Hcompta.Model.Filter as Model.Filter
16 deriving (Data, Eq, IsString, Ord, Show, Typeable)
18 instance Model.Filter.Unit Unit where
21 -- NOTE: maybe consider using text-show package
29 length = Text.length . text