{-# LANGUAGE Safe #-}
module ReWire.HSE.Annotate
( annotate
, Annote
) where
import ReWire.Annotation (Annote, Annotation (toAnnote))
import ReWire.HSE.SrcLoc ()
import Language.Haskell.Exts.SrcLoc (SrcSpanInfo)
import Language.Haskell.Exts.Syntax (Module)
annotate :: Module SrcSpanInfo -> Module Annote
annotate :: Module SrcSpanInfo -> Module Annote
annotate = (SrcSpanInfo -> Annote) -> Module SrcSpanInfo -> Module Annote
forall a b. (a -> b) -> Module a -> Module b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap SrcSpanInfo -> Annote
forall a. Annotation a => a -> Annote
toAnnote