From 533723aa877805ace14f5fba46d9a4cd3fc73049 Mon Sep 17 00:00:00 2001 From: uhbif19 Date: Sun, 7 Aug 2022 20:36:18 +0300 Subject: [PATCH] Support GHC 9.0 and 9.2 #19 --- hemmet.cabal | 2 +- src/Hemmet/FileTree/Transformation.hs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hemmet.cabal b/hemmet.cabal index 0268cc7..95df48e 100644 --- a/hemmet.cabal +++ b/hemmet.cabal @@ -91,7 +91,7 @@ executable hemmeti app/common other-modules: Hemmet.Cli , Hemmet.Tui - build-depends: brick ^>=1.0 + build-depends: brick , microlens , megaparsec , mtl diff --git a/src/Hemmet/FileTree/Transformation.hs b/src/Hemmet/FileTree/Transformation.hs index 1f76879..6937fa2 100644 --- a/src/Hemmet/FileTree/Transformation.hs +++ b/src/Hemmet/FileTree/Transformation.hs @@ -1,11 +1,16 @@ +{-# LANGUAGE CPP #-} + module Hemmet.FileTree.Transformation ( haskellify , pythonify ) where import Data.Char +#if MIN_VERSION_GLASGOW_HASKELL(9,0,0,0) import Data.Text as T hiding (concatMap, elem, map) - +#else +import Data.Text as T hiding (concatMap, map) +#endif import Hemmet.Tree import Hemmet.FileTree.Tree