This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-53
lines changed Expand file tree Collapse file tree 3 files changed +4
-53
lines changed Original file line number Diff line number Diff line change @@ -63,21 +63,6 @@ Executable biosc
63
63
, ghc
64
64
, hie-bios
65
65
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
-
81
66
Source-Repository head
82
67
Type : git
83
68
Location : git://github.com/mpickering/hie-bios.git
Original file line number Diff line number Diff line change @@ -122,12 +122,10 @@ cabalAction work_dir mc _fp = do
122
122
++ [component_name | Just component_name <- [mc]]
123
123
(ex, args, stde) <-
124
124
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)
131
129
132
130
fixImportDirs :: FilePath -> String -> String
133
131
fixImportDirs base_dir arg =
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments