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
|
||||
|
||||
import Lib
|
||||
import Control.Applicative (pure)
|
||||
import System.IO (IO)
|
||||
|
||||
main :: IO ()
|
||||
main = someFunc
|
||||
main = pure ()
|
||||
|
|
|
@ -18,6 +18,10 @@ extra-source-files:
|
|||
# common to point users to the README.md file.
|
||||
description: Please see the README on GitHub at <https://github.com/githubuser/scalie#readme>
|
||||
|
||||
default-extensions:
|
||||
- Safe
|
||||
- NoImplicitPrelude
|
||||
|
||||
dependencies:
|
||||
- base >= 4.7 && < 5
|
||||
|
||||
|
|
11
scalie.cabal
11
scalie.cabal
|
@ -19,11 +19,14 @@ extra-source-files:
|
|||
|
||||
library
|
||||
exposed-modules:
|
||||
Lib
|
||||
Language.Scalie.Ast
|
||||
other-modules:
|
||||
Paths_scalie
|
||||
hs-source-dirs:
|
||||
src
|
||||
default-extensions:
|
||||
Safe
|
||||
NoImplicitPrelude
|
||||
ghc-options: -Weverything
|
||||
build-depends:
|
||||
base >=4.7 && <5
|
||||
|
@ -35,6 +38,9 @@ executable scalie-exe
|
|||
Paths_scalie
|
||||
hs-source-dirs:
|
||||
app
|
||||
default-extensions:
|
||||
Safe
|
||||
NoImplicitPrelude
|
||||
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends:
|
||||
base >=4.7 && <5
|
||||
|
@ -48,6 +54,9 @@ test-suite scalie-test
|
|||
Paths_scalie
|
||||
hs-source-dirs:
|
||||
test
|
||||
default-extensions:
|
||||
Safe
|
||||
NoImplicitPrelude
|
||||
ghc-options: -Weverything -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends:
|
||||
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