Skip to content

Commit

Permalink
Exceptionally merge branch 'issue-147' into stable
Browse files Browse the repository at this point in the history
Issues are normally merged into master, but this time the purpose of
issue 147 is to release a small increment from 1.1, so it made more
sense to start from tag 1.1 on stable and to merge it back there.
I will then merge back into master so that master has all the latest
changes.

If I had merged into master first and then into stable, stable would
have received all the other changes from master, which I don't want
yet. This is a minor release which adds no new feature except
compatibility with GHC 7.10.
  • Loading branch information
gelisam committed Jul 6, 2015
2 parents ea0bc8e + cfef521 commit 12e634f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# What's new?

## New since 1.0
## New in 1.1.1

GHC 7.10 compatibility.

## New in 1.1

In a nutshell, custom context directories and GHC 7.8 compatibility.

Expand Down
6 changes: 3 additions & 3 deletions haskell-awk.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: haskell-awk
Version: 1.1
Version: 1.1.1
Author: Mario Pastorelli <[email protected]>, Samuel Gélineau <[email protected]>
Maintainer: Mario Pastorelli <[email protected]>, Samuel Gélineau <[email protected]>
Synopsis: Transform text from the command-line using Haskell expressions.
Expand All @@ -13,6 +13,7 @@ License-File: LICENSE
Build-Type: Custom
Cabal-version: >=1.10
Extra-Source-Files: README.md
, CHANGELOG.md
, src/*.hs
, src/Control/Monad/Trans/*.hs
, src/Control/Monad/Trans/State/*.hs
Expand Down Expand Up @@ -53,9 +54,8 @@ Executable hawk
, exceptions >=0.1
, filepath
, haskell-awk
, haskell-src-exts >=1.14.0
, haskell-src-exts >=1.16.0
, hint >=0.3.3.5
, MonadCatchIO-mtl >=0.2.0.0
, mtl >=2.1.2
, network >=2.3.1.0
, stringsearch >=0.3.6.4
Expand Down
1 change: 1 addition & 0 deletions src/Data/HaskellModule/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ locatedModule srcLoc source (ModuleName mName) = case moduleLine of
Nothing -> return Nothing
Just line -> located (srcLoc {srcLine = line}) >> return (Just mName)
where
isModuleDecl :: Either B.ByteString String -> Bool
isModuleDecl (Left xs) = "module " `B.isPrefixOf` xs
isModuleDecl (Right xs) = "module " `isPrefixOf` xs

Expand Down
8 changes: 4 additions & 4 deletions src/Language/Haskell/Exts/Location.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ instance Location Decl where
location (DataInsDecl loc _ _ _ _) = Just loc
location (GDataInsDecl loc _ _ _ _ _) = Just loc
location (ClassDecl loc _ _ _ _ _) = Just loc
location (InstDecl loc _ _ _ _) = Just loc
location (DerivDecl loc _ _ _) = Just loc
location (InstDecl loc _ _ _ _ _ _) = Just loc
location (DerivDecl loc _ _ _ _ _) = Just loc
location (InfixDecl loc _ _ _) = Just loc
location (DefaultDecl loc _) = Just loc
location (SpliceDecl loc _) = Just loc
location (TypeSig loc _ _) = Just loc
location (FunBind matches) = location matches
location (PatBind loc _ _ _ _) = Just loc
location (PatBind loc _ _ _) = Just loc
location (ForImp loc _ _ _ _ _) = Just loc
location (ForExp loc _ _ _ _) = Just loc
location (RulePragmaDecl loc _) = Just loc
Expand All @@ -54,7 +54,7 @@ instance Location Decl where
location (InlineConlikeSig loc _ _) = Just loc
location (SpecSig loc _ _ _) = Just loc
location (SpecInlineSig loc _ _ _ _) = Just loc
location (InstSig loc _ _ _) = Just loc
location (InstSig loc _ _ _ _) = Just loc
location (AnnPragma loc _) = Just loc

instance Location Match where
Expand Down
2 changes: 1 addition & 1 deletion tests/RunTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ substSuffix oldSuffix newSuffix xs | oldSuffix `isSuffixOf` xs = prefix ++ newSu
prefix = take (length xs - length oldSuffix) xs
substSuffix _ _ xs = xs

-- make sure doctest can the source of Hawk and the generated Paths_haskell_awk.hs
-- make sure doctest can see the source of Hawk and the generated Paths_haskell_awk.hs
doctest' :: String -> IO ()
doctest' file = do
exePath <- dropExtension <$> getExecutablePath
Expand Down

0 comments on commit 12e634f

Please sign in to comment.