refact 0.2.0.0 → 0.3.0.0
raw patch · 3 files changed
+11/−4 lines, 3 filesdep ~base
Dependency ranges changed: base
Files
- CHANGELOG +5/−0
- refact.cabal +2/−2
- src/Refact/Types.hs +4/−2
CHANGELOG view
@@ -1,3 +1,8 @@+#++* Added `Import` to `RType`.+* Added an rtype field to `Delete`.+ # 0.2 * Changed representation of SrcSpan as suggested by #1.
refact.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: refact-version: 0.2.0.0+version: 0.3.0.0 synopsis: Specify refactorings to perform with apply-refact description: This library provides a datatype which can be interpreted by apply-refact. It exists as a seperate library so that applications can specify refactorings without depending on GHC.@@ -21,7 +21,7 @@ exposed-modules: Refact.Types -- other-modules: -- other-extensions:- build-depends: base >=4 && <59+ build-depends: base >=4 && <5 hs-source-dirs: src default-language: Haskell2010
src/Refact/Types.hs view
@@ -15,7 +15,8 @@ -- | Types of expressions which we are able to replace.-data RType = Expr | Decl | Type | Pattern | Stmt | ModuleName | Bind | Match deriving (Read, Ord, Show, Eq, Data, Typeable)+data RType = Expr | Decl | Type | Pattern | Stmt | ModuleName | Bind | Match | Import+ deriving (Read, Ord, Show, Eq, Data, Typeable) -- | Supported refactorings data Refactoring a =@@ -34,7 +35,8 @@ , newComment :: String } | Delete {- pos :: a+ rtype :: RType+ , pos :: a } | RemoveAsKeyword { -- ^ Takes the position of a import decl and removes the as keyword pos :: a