Created
April 1, 2013 14:36
-
-
Save kamalmarhubi/5285279 to your computer and use it in GitHub Desktop.
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.Text.Lazy as T | |
import qualified Data.Text.Lazy.IO as T | |
import qualified Data.Text.Lazy.Encoding as E | |
import qualified Data.ByteString.Lazy as L | |
mtl = "montréal\n" :: T.Text | |
long = L.cycle $ E.encodeUtf8 mtl | |
main = L.putStr long |
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 Data.Text.IO as T | |
import Control.Monad (forever) | |
main = do | |
forever $ T.putStrLn "montréal" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment