Last active
February 27, 2019 12:35
-
-
Save cblp/430e210435dde653269a2be65983a837 to your computer and use it in GitHub Desktop.
Run as `./Interpolate.hs`
This file contains hidden or 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
Привет, #{world}! |
This file contains hidden or 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
#!/usr/bin/env stack | |
-- stack --resolver=lts-13.0 script | |
{-# LANGUAGE TemplateHaskell #-} | |
import Data.String.Interpolate (i) | |
import Language.Haskell.TH.Quote (quoteExp, quoteFile) | |
main = putStr $(quoteExp (quoteFile i) "hello.txt") where | |
world = "мир" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment