Enable some defaults (Safe, NoImplicitPrelude)
This commit is contained in:
parent
6ebbb483f5
commit
4bd766027f
5 changed files with 18 additions and 9 deletions
|
@ -1,6 +1,7 @@
|
||||||
module Main (main) where
|
module Main (main) where
|
||||||
|
|
||||||
import Lib
|
import Control.Applicative (pure)
|
||||||
|
import System.IO (IO)
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = someFunc
|
main = pure ()
|
||||||
|
|
|
@ -18,6 +18,10 @@ extra-source-files:
|
||||||
# common to point users to the README.md file.
|
# common to point users to the README.md file.
|
||||||
description: Please see the README on GitHub at <https://github.com/githubuser/scalie#readme>
|
description: Please see the README on GitHub at <https://github.com/githubuser/scalie#readme>
|
||||||
|
|
||||||
|
default-extensions:
|
||||||
|
- Safe
|
||||||
|
- NoImplicitPrelude
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- base >= 4.7 && < 5
|
- base >= 4.7 && < 5
|
||||||
|
|
||||||
|
|
11
scalie.cabal
11
scalie.cabal
|
@ -19,11 +19,14 @@ extra-source-files:
|
||||||
|
|
||||||
library
|
library
|
||||||
exposed-modules:
|
exposed-modules:
|
||||||
Lib
|
Language.Scalie.Ast
|
||||||
other-modules:
|
other-modules:
|
||||||
Paths_scalie
|
Paths_scalie
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
src
|
src
|
||||||
|
default-extensions:
|
||||||
|
Safe
|
||||||
|
NoImplicitPrelude
|
||||||
ghc-options: -Weverything
|
ghc-options: -Weverything
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.7 && <5
|
base >=4.7 && <5
|
||||||
|
@ -35,6 +38,9 @@ executable scalie-exe
|
||||||
Paths_scalie
|
Paths_scalie
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
app
|
app
|
||||||
|
default-extensions:
|
||||||
|
Safe
|
||||||
|
NoImplicitPrelude
|
||||||
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.7 && <5
|
base >=4.7 && <5
|
||||||
|
@ -48,6 +54,9 @@ test-suite scalie-test
|
||||||
Paths_scalie
|
Paths_scalie
|
||||||
hs-source-dirs:
|
hs-source-dirs:
|
||||||
test
|
test
|
||||||
|
default-extensions:
|
||||||
|
Safe
|
||||||
|
NoImplicitPrelude
|
||||||
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.7 && <5
|
base >=4.7 && <5
|
||||||
|
|
1
src/Language/Scalie/Ast.hs
Normal file
1
src/Language/Scalie/Ast.hs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
module Language.Scalie.Ast () where
|
|
@ -1,6 +0,0 @@
|
||||||
module Lib
|
|
||||||
( someFunc
|
|
||||||
) where
|
|
||||||
|
|
||||||
someFunc :: IO ()
|
|
||||||
someFunc = putStrLn "someFunc"
|
|
Loading…
Add table
Add a link
Reference in a new issue