Skip to content
Browse files

Add example/test program.

  • Loading branch information...
1 parent 4ec4048 commit 51c31570354a53e3a5131e7be3bd9ef8e5d73bd5 @nominolo nominolo committed Oct 10, 2008
Showing with 28 additions and 9 deletions.
  1. +9 −0 examples/GetImports.hs
  2. +19 −9 scion.cabal
View
9 examples/GetImports.hs
@@ -0,0 +1,9 @@
+module Main where
+
+import Scion
+import MonadUtils ( liftIO )
+
+main = runScion $ do
+ liftIO $ print "hello"
+ setWorkingDir "./tests"
+
View
28 scion.cabal
@@ -14,20 +14,30 @@ cabal-version: >= 1.2
-- tested-with: GHC ==6.10.1
-- extra-source-files: README
---flag bytestring-in-base
---flag split-base
---flag applicative-in-base
---flag base-3
-
library
- build-depends: base >= 4 && < 5
+ build-depends: base >= 4 && < 5,
+ directory >= 1.0 && < 1.1
hs-source-dirs: src
- extensions: Rank2Types
+-- extensions: Rank2Types
exposed-modules:
- Scion.Types
+ Scion.Types,
+ Scion
+
executable test
main-is: src/Main.hs
build-depends: base >= 4 && < 5,
ghc-paths >= 0.1 && < 0.2,
- ghc >= 6.10 && < 6.12
+ ghc >= 6.10 && < 6.12
+
+executable test_get_imports
+ main-is: GetImports.hs
+ hs-source-dirs: examples
+ src
+-- extensions: Rank2Types
+ build-depends: base >= 4 && < 5,
+ ghc-paths >= 0.1 && < 0.2,
+ ghc >= 6.10 && < 6.12,
+ ghc-syb >= 0.1 && < 0.2,
+ directory >= 1.0 && < 1.1
+ other-modules: Scion

0 comments on commit 51c3157

Please sign in to comment.
Something went wrong with that request. Please try again.