Created
October 10, 2015 06:53
-
-
Save ishiy1993/9cd698f1c58bbc2993c9 to your computer and use it in GitHub Desktop.
Haskellの色々な文字列型
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import qualified Data.ByteString as SB | |
import qualified Data.ByteString.Char8 as SBC | |
import qualified Data.ByteString.Lazy as LB | |
import qualified Data.ByteString.Lazy.Char8 as LBC | |
import qualified Data.Text as ST | |
import qualified Data.Text.Encoding as STE | |
import qualified Data.Text.Lazy as LT | |
import qualified Data.Text.Lazy.Encoding as LTE | |
str :: String | |
str = "strings" | |
sb :: SB.ByteString | |
sb = "strict bytestrings" | |
lb :: LB.ByteString | |
lb = "lazy bytestrings" | |
st :: ST.Text | |
st = "strict texts" | |
lt :: LT.Text | |
lt = "lazy texts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment