mirrored from https://gitlab.haskell.org/ghc/ghc.git
-
Notifications
You must be signed in to change notification settings - Fork 704
/
HsExpr.lhs-boot
46 lines (35 loc) · 1.16 KB
/
HsExpr.lhs-boot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\begin{code}
{-# LANGUAGE KindSignatures #-}
module HsExpr where
import SrcLoc ( Located )
import Outputable ( SDoc, OutputableBndr, Outputable )
import {-# SOURCE #-} HsPat ( LPat )
import Data.Data
-- IA0_NOTE: We need kind annotations because of kind polymorphism
data HsExpr (i :: *)
data HsSplice (i :: *)
data MatchGroup (a :: *)
data GRHSs (a :: *)
instance Typeable1 HsSplice
instance Data i => Data (HsSplice i)
instance Typeable1 HsExpr
instance Data i => Data (HsExpr i)
instance Typeable1 MatchGroup
instance Data i => Data (MatchGroup i)
instance Typeable1 GRHSs
instance Data i => Data (GRHSs i)
instance OutputableBndr id => Outputable (HsSplice id)
instance OutputableBndr id => Outputable (HsExpr id)
type LHsExpr a = Located (HsExpr a)
type SyntaxExpr a = HsExpr a
pprLExpr :: (OutputableBndr i) =>
LHsExpr i -> SDoc
pprExpr :: (OutputableBndr i) =>
HsExpr i -> SDoc
pprSplice :: (OutputableBndr i) =>
HsSplice i -> SDoc
pprPatBind :: (OutputableBndr b, OutputableBndr i) =>
LPat b -> GRHSs i -> SDoc
pprFunBind :: (OutputableBndr idL, OutputableBndr idR) =>
idL -> Bool -> MatchGroup idR -> SDoc
\end{code}