Update examples
This commit is contained in:
15
testsuite/hier/hier1/Modules/Flags.hs
Normal file
15
testsuite/hier/hier1/Modules/Flags.hs
Normal file
@ -0,0 +1,15 @@
|
||||
--
|
||||
-- A simple module
|
||||
--
|
||||
|
||||
module Modules.Flags where
|
||||
|
||||
|
||||
data FlagRec = FlagRec {
|
||||
f1 :: Int,
|
||||
f2 :: Int
|
||||
}
|
||||
|
||||
|
||||
foo :: FlagRec -> Int
|
||||
foo x = f1 x
|
6
testsuite/hier/hier1/Modules/Makefile
Normal file
6
testsuite/hier/hier1/Modules/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
all:
|
||||
ghc -O -c Flags.hs
|
||||
|
||||
clean:
|
||||
rm -f *.hi *.o
|
Reference in New Issue
Block a user