@@ -21,6 +21,7 @@ module Data.Syntax.Indent (
2121
2222import Control.Category
2323import Control.Category.Reader
24+import Control.Category.Structures
2425import Control.SIArrow
2526import Data.Syntax
2627import Data.Syntax.Char
@@ -28,10 +29,10 @@ import Data.Syntax.Combinator
2829import Prelude hiding (takeWhile, take, id, (.))
2930
3031-- | Adds indentation to a syntax description.
31−newtype Indent cat a b = Indent { unIndent :: ReaderCT (Int, cat () ()) cat a b }
32− deriving (Category, Products, Coproducts, CategoryPlus, SIArrow)
32+newtype Indent cat a b = Indent { getIndent :: ReaderCT (Int, cat () ()) cat a b }
33+ deriving (Category, Products, Coproducts, CatPlus, SIArrow)
3334
34−instance CategoryTrans Indent where
35+instance CatTrans Indent where
3536 clift = Indent . clift
3637
3738-- Generalized newtype deriving cannot derive this :(