diff options
author | simonmar <unknown> | 2002-07-19 09:59:02 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-07-19 09:59:02 +0000 |
commit | a69d7378afabc5fdfb2f82ae3b86eb76568c654a (patch) | |
tree | cf7e7030b51396faa7dfdf9c83b51af2bbe2ee25 /src/HsSyn.lhs | |
parent | 80a97e74e3ebad5053e6a5eece6a30873d05da7b (diff) |
[haddock @ 2002-07-19 09:59:02 by simonmar]
Allow special id's ([], (), etc.) to be used in an import declarations.
Diffstat (limited to 'src/HsSyn.lhs')
-rw-r--r-- | src/HsSyn.lhs | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/HsSyn.lhs b/src/HsSyn.lhs index 4d858524..0801983a 100644 --- a/src/HsSyn.lhs +++ b/src/HsSyn.lhs @@ -1,5 +1,5 @@ % ----------------------------------------------------------------------------- -% $Id: HsSyn.lhs,v 1.11 2002/06/03 13:05:58 simonmar Exp $ +% $Id: HsSyn.lhs,v 1.12 2002/07/19 09:59:02 simonmar Exp $ % % (c) The GHC Team, 1997-2002 % @@ -27,6 +27,7 @@ module HsSyn ( forall_name, unsafe_name, safe_name, threadsafe_name, export_name, stdcall_name, ccall_name, dotnet_name, unit_tycon_name, fun_tycon_name, list_tycon_name, tuple_tycon_name, + unit_tycon_qname, fun_tycon_qname, list_tycon_qname, tuple_tycon_qname, unit_tycon, fun_tycon, list_tycon, tuple_tycon, GenDoc(..), Doc, DocMarkup(..), @@ -336,15 +337,20 @@ minus_name = HsVarName (HsSymbol "-") pling_name = HsVarName (HsSymbol "!") dot_name = HsVarName (HsSymbol ".") -unit_tycon_name = Qual prelude_mod (HsTyClsName unit_ident) -fun_tycon_name = Qual prelude_mod (HsTyClsName (HsSpecial "->")) -list_tycon_name = Qual prelude_mod (HsTyClsName (HsSpecial "[]")) -tuple_tycon_name i = Qual prelude_mod (HsTyClsName (tuple_ident i)) +unit_tycon_name = HsTyClsName unit_ident +fun_tycon_name = HsTyClsName (HsSpecial "->") +list_tycon_name = HsTyClsName (HsSpecial "[]") +tuple_tycon_name i = HsTyClsName (tuple_ident i) -unit_tycon = HsTyCon unit_tycon_name -fun_tycon = HsTyCon fun_tycon_name -list_tycon = HsTyCon list_tycon_name -tuple_tycon i = HsTyCon (tuple_tycon_name i) +unit_tycon_qname = Qual prelude_mod unit_tycon_name +fun_tycon_qname = Qual prelude_mod fun_tycon_name +list_tycon_qname = Qual prelude_mod list_tycon_name +tuple_tycon_qname i = Qual prelude_mod (tuple_tycon_name i) + +unit_tycon = HsTyCon unit_tycon_qname +fun_tycon = HsTyCon fun_tycon_qname +list_tycon = HsTyCon list_tycon_qname +tuple_tycon i = HsTyCon (tuple_tycon_qname i) -- ----------------------------------------------------------------------------- -- Doc strings and formatting |