Enable some defaults (Safe, NoImplicitPrelude)

This commit is contained in:
vegowotenks 2025-08-11 16:01:09 +02:00
parent 6ebbb483f5
commit 4bd766027f
5 changed files with 18 additions and 9 deletions

View file

@ -1,6 +1,7 @@
module Main (main) where
import Lib
import Control.Applicative (pure)
import System.IO (IO)
main :: IO ()
main = someFunc
main = pure ()

View file

@ -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

View file

@ -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

View file

@ -0,0 +1 @@
module Language.Scalie.Ast () where

View file

@ -1,6 +0,0 @@
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"