stackage-sandbox 0.1.4 → 0.1.5
raw patch · 3 files changed
+9/−2 lines, 3 files
Files
- ChangeLog.md +4/−0
- main/Sandbox.hs +4/−1
- stackage-sandbox.cabal +1/−1
ChangeLog.md view
@@ -1,3 +1,7 @@+## 0.1.5++* Added temporary solution for dealing with changes to stackage.org (#4)+ ## 0.1.4 * Added temporary solution for detecting wrong ghc version on path. (#1)
main/Sandbox.hs view
@@ -133,10 +133,13 @@ parseConfigSnapshot = do ls <- T.lines <$> T.readFile "cabal.config" let p = "-- Stackage snapshot from: http://www.stackage.org/snapshot/"+ let p' = "-- Stackage snapshot from: http://www.stackage.org/" case ls of (l:_) -> case T.stripPrefix p l of Just snapshot -> return snapshot- Nothing -> throwIO NonStackageCabalConfig+ Nothing -> case T.stripPrefix p' l of+ Just snapshot -> return snapshot+ Nothing -> throwIO NonStackageCabalConfig _ -> throwIO EmptyCabalConfig -- TODO: a stricter check?
stackage-sandbox.cabal view
@@ -1,5 +1,5 @@ name: stackage-sandbox-version: 0.1.4+version: 0.1.5 synopsis: Work with shared stackage sandboxes description: