-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into inlay-hints-positional-record
- Loading branch information
Showing
10 changed files
with
93 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ins/hls-cabal-plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/bench/Main.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Main (main) where | ||
|
||
import Data.List.Split | ||
|
||
main :: IO () | ||
main = putStrLn "Test suite not yet implemented." |
33 changes: 33 additions & 0 deletions
33
...plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/cabal-add-multitarget.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
cabal-version: 2.4 | ||
name: cabal-add-multitarget | ||
version: 0.1.0.0 | ||
build-type: Simple | ||
|
||
executable cabal-add-exe | ||
main-is: Main.hs | ||
hs-source-dirs: src | ||
ghc-options: -Wall | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
library | ||
exposed-modules: MyLib | ||
other-modules: InternalLib | ||
build-depends: base >= 4 && < 5 | ||
hs-source-dirs: lib | ||
ghc-options: -Wall | ||
|
||
test-suite cabal-add-tests-test | ||
main-is: Main.hs | ||
hs-source-dirs: test | ||
type: exitcode-stdio-1.0 | ||
build-depends: base | ||
default-language: Haskell2010 | ||
|
||
benchmark benchmark | ||
main-is: Main.hs | ||
build-depends: base | ||
hs-source-dirs: bench | ||
type: exitcode-stdio-1.0 | ||
ghc-options: -threaded | ||
|
6 changes: 6 additions & 0 deletions
6
...ls-cabal-plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/lib/InternalLib.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module InternalLib (internalFunc) where | ||
|
||
import Data.List.Split | ||
|
||
internalFunc :: IO () | ||
internalFunc = putStrLn "internalFunc" |
6 changes: 6 additions & 0 deletions
6
plugins/hls-cabal-plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/lib/MyLib.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module MyLib (someFunc) where | ||
|
||
import Data.List.Split | ||
|
||
someFunc :: IO () | ||
someFunc = putStrLn "someFunc" |
5 changes: 5 additions & 0 deletions
5
plugins/hls-cabal-plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/src/Main.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Main where | ||
|
||
import Data.List.Split | ||
|
||
main = putStrLn "Hello, Haskell!" |
6 changes: 6 additions & 0 deletions
6
plugins/hls-cabal-plugin/test/testdata/cabal-add-testdata/cabal-add-multitarget/test/Main.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Main (main) where | ||
|
||
import Data.List.Split | ||
|
||
main :: IO () | ||
main = putStrLn "Test suite not yet implemented." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ packages: cabal-add-exe | |
cabal-add-lib | ||
cabal-add-tests | ||
cabal-add-bench | ||
cabal-add-multitarget | ||
cabal-add-packageYaml |