Skip to content

Commit

Permalink
Add example/test program.
Browse files Browse the repository at this point in the history
  • Loading branch information
nominolo committed Oct 10, 2008
1 parent 4ec4048 commit 51c3157
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
9 changes: 9 additions & 0 deletions examples/GetImports.hs
@@ -0,0 +1,9 @@
module Main where

import Scion
import MonadUtils ( liftIO )

main = runScion $ do
liftIO $ print "hello"
setWorkingDir "./tests"

28 changes: 19 additions & 9 deletions scion.cabal
Expand Up @@ -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.