ghcide hack (#21)

* ghcide hack

* Removed executable

* bumped resolver

* removed extra Lib.hs
This commit is contained in:
iko 2020-02-06 16:33:09 +03:00 committed by GitHub
parent a0931060c5
commit ffdd32782c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 34 deletions

1
.weeder.yaml Normal file
View File

@ -0,0 +1 @@
- message: Module reused between components

View File

@ -1,7 +0,0 @@
module Main
( main,
)
where
main :: IO ()
main = putStrLn "henlo."

4
hie.yaml Normal file
View File

@ -0,0 +1,4 @@
cradle:
stack:
- path: "."
component: "isoparsec:test:isoparsec-test"

View File

@ -21,17 +21,16 @@ description: Please see the README on GitHub at <https://github.com/ilya
dependencies:
- base >= 4.7 && < 5
- containers
- optics-core
- megaparsec
- bytestring
# - text
- mtl
library:
source-dirs: src
dependencies:
- optics-core
- megaparsec
- containers
- bytestring
# - text
- mtl
dependencies: []
default-extensions:
- AllowAmbiguousTypes
@ -57,26 +56,17 @@ default-extensions:
- TypeOperators
- UndecidableInstances
executables:
isoparsec-exe:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies: []
tests:
isoparsec-test:
main: Spec.hs
source-dirs: test
source-dirs:
- test
- src
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- isoparsec
- tasty
- tasty-hspec
- hspec

View File

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

View File

@ -17,7 +17,7 @@
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: lts-14.15
resolver: lts-14.23
# User packages to be built.
# Various formats can be used as shown in the example below.