diff options
author | tv <tv@krebsco.de> | 2019-01-25 04:15:45 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-25 13:55:05 +0100 |
commit | 6b767df2fc47a77a4f856e040346ce49c0e7bf00 (patch) | |
tree | 863ef12461dc6be9f4d010be22e0ad2c855cbcce /src/Blessings/String.hs | |
parent | ccd7117c31074069414eb00dd0b7ed6b648ddeff (diff) |
Add support for Textv2.0.0
Diffstat (limited to 'src/Blessings/String.hs')
-rw-r--r-- | src/Blessings/String.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Blessings/String.hs b/src/Blessings/String.hs new file mode 100644 index 0000000..c2c7273 --- /dev/null +++ b/src/Blessings/String.hs @@ -0,0 +1,18 @@ +{-# LANGUAGE FlexibleInstances #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Blessings.String + ( module Blessings + ) where + +import Blessings +import Blessings.Internal +import qualified Data.List as L + + +instance Blessable String where + length = L.length + drop = L.drop + take = L.take + intercalate = L.intercalate + fromInt = show |