Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ara Adkins
Glasgow Haskell Compiler
Commits
6cbff239
Commit
6cbff239
authored
Apr 05, 2004
by
simonpj
Browse files
[project @ 2004-04-05 08:21:39 by simonpj]
Use consistent capitalisation
parent
7a1aff6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/Data/Typeable.hs
View file @
6cbff239
...
...
@@ -39,13 +39,13 @@ module Data.Typeable
mkTyConApp
,
-- :: TyCon -> [TypeRep] -> TypeRep
mkAppTy
,
-- :: TypeRep -> TypeRep -> TypeRep
mkFunTy
,
-- :: TypeRep -> TypeRep -> TypeRep
splitTyConApp
,
-- :: TypeRep -> (TyCon, [TypeRep])
funResultTy
,
-- :: TypeRep -> TypeRep -> Maybe TypeRep
-- * Observation of type representations
typerepTyCon
,
-- :: TypeRep -> TyCon
typerepArgs
,
-- :: TypeRep -> [TypeRep]
tyconString
,
-- :: TyCon -> String
splitTyConApp
,
-- :: TypeRep -> (TyCon, [TypeRep])
funResultTy
,
-- :: TypeRep -> TypeRep -> Maybe TypeRep
typeRepTyCon
,
-- :: TypeRep -> TyCon
typeRepArgs
,
-- :: TypeRep -> [TypeRep]
tyConString
,
-- :: TyCon -> String
-- * The other Typeable classes
-- | /Note:/ The general instances are provided for GHC only.
...
...
@@ -211,16 +211,16 @@ mkTyCon str = TyCon (mkTyConKey str) str
----------------- Observation ---------------------
-- | Observe the type constructor of a type representation
type
r
epTyCon
::
TypeRep
->
TyCon
type
r
epTyCon
(
TypeRep
_
tc
_
)
=
tc
type
R
epTyCon
::
TypeRep
->
TyCon
type
R
epTyCon
(
TypeRep
_
tc
_
)
=
tc
-- | Observe the argument types of a type representation
type
r
epArgs
::
TypeRep
->
[
TypeRep
]
type
r
epArgs
(
TypeRep
_
_
args
)
=
args
type
R
epArgs
::
TypeRep
->
[
TypeRep
]
type
R
epArgs
(
TypeRep
_
_
args
)
=
args
-- | Observe string encoding of a type representation
ty
c
onString
::
TyCon
->
String
ty
c
onString
(
TyCon
_
str
)
=
str
ty
C
onString
::
TyCon
->
String
ty
C
onString
(
TyCon
_
str
)
=
str
----------------- Showing TypeReps --------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment