derive 2.5.12 → 2.5.13
raw patch · 3 files changed
+12/−16 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Derive/Flags.hs +1/−1
- Derive/Main.hs +10/−14
- derive.cabal +1/−1
Derive/Flags.hs view
@@ -39,7 +39,7 @@ getFlags = do args <- getArgs case getOpt Permute options args of- (o,n,[] ) | Version `elem` o -> putStrLn "Derive 2.4.* (C) Neil Mitchell 2006-2011" >> exitSuccess+ (o,n,[] ) | Version `elem` o -> putStrLn "Derive 2.5.* (C) Neil Mitchell 2006-2013" >> exitSuccess | Help `elem` o -> putStr flagInfo >> exitSuccess | Preprocessor `elem` o -> return (o,n) | otherwise -> do files <- mapM pickFile n; return (o, files)
Derive/Main.hs view
@@ -35,7 +35,7 @@ mainFile derivations flags file = do src <- readFile file src <- return $ unlines $ filter (not . isPrefixOf "#") $ lines src- let parse = fromParseResult . parseFileContentsWithMode defaultParseMode{parseFilename=file,extensions=map EnableExtension extension}+ let parse = fromParseResult . parseFileContentsWithMode defaultParseMode{parseFilename=file,extensions=defaultExtensions} real = parse src mine = parse $ uncomment src flags <- return $ foldl addFlags flags@@ -52,16 +52,12 @@ -- Taken from HLint, update occasionally-extension =- [OverlappingInstances,UndecidableInstances,IncoherentInstances,RecursiveDo- ,ParallelListComp,MultiParamTypeClasses,FunctionalDependencies- ,Rank2Types,RankNTypes,PolymorphicComponents,ExistentialQuantification,ScopedTypeVariables- ,ImplicitParams,FlexibleContexts,FlexibleInstances,EmptyDataDecls- ,KindSignatures,BangPatterns,TypeSynonymInstances,TemplateHaskell- ,ForeignFunctionInterface,Generics,NamedFieldPuns,PatternGuards- ,GeneralizedNewtypeDeriving,ExtensibleRecords,RestrictedTypeSynonyms,HereDocuments- ,MagicHash,TypeFamilies,StandaloneDeriving,UnicodeSyntax,PatternSignatures,UnliftedFFITypes- ,LiberalTypeSynonyms,TypeOperators,RecordWildCards,RecordPuns,DisambiguateRecordFields- ,OverloadedStrings,GADTs,MonoPatBinds,RelaxedPolyRec,ExtendedDefaultRules,UnboxedTuples- ,DeriveDataTypeable,ConstrainedClassMethods,PackageImports,ImpredicativeTypes- ,NewQualifiedOperators,PostfixOperators,QuasiQuotes,ViewPatterns]+defaultExtensions :: [Extension]+defaultExtensions = [e | e@EnableExtension{} <- knownExtensions] \\ map EnableExtension badExtensions++badExtensions =+ [Arrows -- steals proc+ ,TransformListComp -- steals the group keyword+ ,XmlSyntax, RegularPatterns -- steals a-b+ ]+
derive.cabal view
@@ -1,7 +1,7 @@ cabal-version: >= 1.6 build-type: Default name: derive-version: 2.5.12+version: 2.5.13 build-type: Simple copyright: Neil Mitchell 2006-2013 author: Neil Mitchell <ndmitchell@gmail.com>