Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit b3dc1a0

Browse files
committed
Revert "Better error"
This reverts commit 66d0212.
1 parent 46b95b5 commit b3dc1a0

File tree

3 files changed

+4
-53
lines changed

3 files changed

+4
-53
lines changed

hie-bios/hie-bios.cabal

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,6 @@ Executable biosc
6363
, ghc
6464
, hie-bios
6565

66-
67-
test-suite unit-test
68-
type: exitcode-stdio-1.0
69-
hs-source-dirs: test/
70-
main-is: Main.hs
71-
other-modules:
72-
build-depends: base
73-
, hie-bios
74-
, hspec
75-
, filepath
76-
, directory
77-
78-
ghc-options: -Wall -Wredundant-constraints
79-
default-language: Haskell2010
80-
8166
Source-Repository head
8267
Type: git
8368
Location: git://github.com/mpickering/hie-bios.git

hie-bios/src/HIE/Bios/Cradle.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,10 @@ cabalAction work_dir mc _fp = do
122122
++ [component_name | Just component_name <- [mc]]
123123
(ex, args, stde) <-
124124
withCurrentDirectory work_dir (readProcessWithExitCode "cabal" cab_args [])
125-
case lines args of
126-
[dir, ghc_args] -> do
127-
let final_args = map (fixImportDirs dir) (words ghc_args)
128-
traceM dir
129-
return (ex, stde, final_args)
130-
_ -> error (show (ex, args, stde))
125+
let [dir, ghc_args] = lines args
126+
final_args = map (fixImportDirs dir) (words ghc_args)
127+
traceM dir
128+
return (ex, stde, final_args)
131129

132130
fixImportDirs :: FilePath -> String -> String
133131
fixImportDirs base_dir arg =

hie-bios/test/Main.hs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)