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