summaryrefslogtreecommitdiffstats
path: root/src/Blessings/Text.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blessings/Text.hs')
-rw-r--r--src/Blessings/Text.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Blessings/Text.hs b/src/Blessings/Text.hs
new file mode 100644
index 0000000..64d261b
--- /dev/null
+++ b/src/Blessings/Text.hs
@@ -0,0 +1,18 @@
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+
+module Blessings.Text
+ ( module Blessings
+ ) where
+
+import Blessings
+import Blessings.Internal
+import Data.Text (Text)
+import qualified Data.Text as T
+
+
+instance Blessable Text where
+ length = T.length
+ drop = T.drop
+ take = T.take
+ intercalate = T.intercalate
+ fromInt = T.pack . show