-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Here document without variable expansion like PHP Nowdoc
--   
--   Please see the README on GitHub at
--   <a>https://github.com/YoshikuniJujo/nowdoc#readme</a>
@package nowdoc
@version 0.1.1.0


-- | With QuasiQuotes language extension.
module Text.Nowdoc

-- | Simplest here document. Only two transformation.
--   
--   <ul>
--   <li>remove head newline if exist</li>
--   <li>remove one space from '|', space, space, ..., ']'</li>
--   </ul>
--   
--   <pre>
--   main :: IO ()
--   main = putStrLn [nowdoc|hello|]
--   </pre>
--   
--   <pre>
--   main :: IO ()
--   main = putStr [nowdoc|
--   Hello, world!
--   |]
--   </pre>
--   
--   <pre>
--   main :: IO ()
--   main = putStr [nowdoc|
--   main :: IO ()
--   main = putStr [nowdoc|
--   Hello, world!
--   | ]
--   |]
--   </pre>
nowdoc :: QuasiQuoter

-- | QuasiQuoter txtfile incerts file contents as string without
--   transformation. It read file as text file (with default encoding on
--   your system).
--   
--   <pre>
--   main :: IO ()
--   main = putStr [txtfile|foo.txt|]
--   </pre>
txtfile :: QuasiQuoter

-- | QuasiQuoter binfile incerts file contents as string without
--   transformation. It read file as binary file.
--   
--   <pre>
--   main :: IO ()
--   main = print [binfile|foo.dat|]
--   </pre>
binfile :: QuasiQuoter
