Tests for TH, LHS and CPP with FileMapping

This commit is contained in:
Nikolay Yakimov
2015-08-16 17:36:10 +03:00
parent d276b9bb7f
commit 70d2a4704b
7 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
> main :: IO ()
> main = putStrLn "Hello World!"

View File

@@ -0,0 +1 @@
> main = putStrLn "Hello World!"

View File

@@ -0,0 +1,4 @@
> module File where
> func :: Num a => a -> a -> a
> func a b = (*) a b

View File

@@ -0,0 +1,7 @@
{-# LANGUAGE CPP #-}
#ifndef NOTHING
main :: IO ()
main = putStrLn "Hello World!"
#else
INVALID
#endif

View File

@@ -0,0 +1,6 @@
{-# LANGUAGE CPP #-}
#ifndef NOTHING
main = putStrLn "Hello World!"
#else
INVALID
#endif

View File

@@ -0,0 +1,9 @@
{-# LANGUAGE CPP #-}
#ifndef NOTHING
module File where
func :: Num a => a -> a -> a
func a b = (*) a b
#else
INVALID
#endif