Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .azure/macos-installhs-cabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ jobs:
displayName: "Unpack cache"
condition: eq(variables.CACHE_RESTORED, 'true')
- bash: |
brew install cabal-install
# TODO Install ghc-8.8.3 when adding stack-8.8.3.yaml
brew install [email protected]
brew install cabal-install --ignore-dependencies ghc
which cabal
which ghc
cabal update
displayName: Install cabal and ghc
- bash: |
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
source .azure/windows-cabal.bashrc
cabal v2-run ./install.hs --project-file $PROJECT_FILE -- help
displayName: Run help of `install.hs`
- bash: |
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
source .azure/windows-cabal.bashrc
cabal v2-run ./install.hs --project-file $PROJECT_FILE -- latest
displayName: Run latest target of `install.hs`
Expand Down
1 change: 1 addition & 0 deletions haskell-ide-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ test-suite unit-test
LiquidSpec
OptionsSpec
PackagePluginSpec
Paths_haskell_ide_engine
Spec
-- Technically cabal-helper should be a 'run-tool-depends', but that doesn't exist yet
build-tool-depends: cabal-helper:cabal-helper-main, hspec-discover:hspec-discover
Expand Down
2 changes: 1 addition & 1 deletion stack-8.4.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hslogger-1.3.1.0
- invariant-0.5.3
- lens-4.18.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.4.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hslogger-1.3.1.0
- hspec-2.7.1
- hspec-core-2.7.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- hslogger-1.3.1.0
- invariant-0.5.3
- lens-4.18.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- lsp-test-0.10.1.0
- monad-dijkstra-0.1.1.2@rev:1
- monad-memo-0.4.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- indexed-profunctors-0.1
- lsp-test-0.10.1.0
- monad-dijkstra-0.1.1.2
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extra-deps:
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- hsimport-0.11.0@sha256:e8f1774aff97215d7cc3a6c81635fae75b80af182f732f8fe28d1ed6eb9c7401,3170
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
Expand Down
4 changes: 3 additions & 1 deletion test/unit/OptionsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ module OptionsSpec where

import Prelude hiding (unzip)
import Data.List.NonEmpty(unzip)
import Data.Version (showVersion)
import Test.Hspec
import Options.Applicative
import Haskell.Ide.Engine.Options(GlobalOpts(..), RunMode(..), ProjectLoadingOpts(..), optionParser)
import System.Exit(ExitCode(..))
import Data.List(isPrefixOf)
import Paths_haskell_ide_engine as HIE (version)

main :: IO ()
main = hspec spec
Expand Down Expand Up @@ -39,7 +41,7 @@ spec = do
let (maybeMessage, maybeStatusCode) = unzip $ getParseFailure result

it "should return version" $
maybeMessage `shouldBe` Just "1.1"
maybeMessage `shouldBe` Just (showVersion HIE.version)
it "shoud return exit code 0" $
maybeStatusCode `shouldBe` Just ExitSuccess

Expand Down