haskell-tools-backend-ghc 0.6.0.0 → 0.7.0.0
raw patch · 2 files changed
+5/−4 lines, 2 filesdep ~haskell-tools-astPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: haskell-tools-ast
API changes (from Hackage documentation)
Files
Language/Haskell/Tools/AST/FromGHC/Modules.hs view
@@ -162,8 +162,9 @@ <$> (combineSrcSpans <$> asks (srcLocSpan . srcSpanStart . contRange) <*> (srcLocSpan . srcSpanEnd <$> tokenLoc AnnWhere)) trfImport :: TransformName n r => LImportDecl n -> Trf (Ann AST.UImportDecl (Dom r) RangeStage) -trfImport (L l impDecl@(GHC.ImportDecl _ name pkg isSrc isSafe isQual _ declAs declHiding)) = - do safeTok <- tokenLoc AnnSafe +trfImport (L l impDecl@(GHC.ImportDecl _ name pkg isSrc _ isQual _ declAs declHiding)) = focusOn l $ + do range <- asks contRange + safeTok <- tokenLoc AnnSafe let -- default positions of optional parts of an import declaration annBeforeQual = if isSrc then AnnClose else AnnImport
haskell-tools-backend-ghc.cabal view
@@ -1,5 +1,5 @@ name: haskell-tools-backend-ghc -version: 0.6.0.0 +version: 0.7.0.0 synopsis: Creating the Haskell-Tools AST from GHC's representations description: This package collects information from various representations of a Haskell program in GHC. Basically GHC provides us with the parsed, the renamed and the type checked representation of the program, if it was type correct. Each version contains different information. For example, the renamed AST contains the unique names of the definitions, however, template haskell splices are already resolved and thus missing from that version of the AST. To get the final representation we perform a transformation on the parsed and renamed representation, and then use the type checked one to look up the types of the names. The whole transformation is defined in the `Modules` module. Other modules define the functions that convert elements of the GHC AST to our AST. homepage: https://github.com/nboldi/haskell-tools @@ -42,5 +42,5 @@ , split >= 0.2 && < 0.3 , template-haskell >= 2.11 && < 2.12 , ghc >= 8.0 && < 8.1 - , haskell-tools-ast >= 0.6 && < 0.7 + , haskell-tools-ast >= 0.7 && < 0.8 default-language: Haskell2010