summaryrefslogtreecommitdiff
path: root/ghc/compiler/prelude/PrelMods.lhs
blob: 02fd9f6fef818b9fb58c23c1df17557f25a53ff6 (plain)
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
%
% (c) The GRASP/AQUA Project, Glasgow University, 1992-1996
%
\section[PrelMods]{Definitions of prelude modules}

The strings identify built-in prelude modules.  They are
defined here so as to avod
\begin{code}
#include "HsVersions.h"

module PrelMods (
	pRELUDE, pRELUDE_BUILTIN,
	pRELUDE_LIST, pRELUDE_TEXT,
	pRELUDE_PRIMIO, pRELUDE_IO, pRELUDE_PS,
	gLASGOW_ST, gLASGOW_MISC,
	pRELUDE_FB,
	rATIO,
	
	fromPrelude
  ) where

CHK_Ubiq() -- debugging consistency check
\end{code}


\begin{code}
gLASGOW_MISC	= SLIT("PreludeGlaMisc")
gLASGOW_ST	= SLIT("PreludeGlaST")
pRELUDE		= SLIT("Prelude")
pRELUDE_BUILTIN = SLIT("PreludeBuiltin")
pRELUDE_FB	= SLIT("PreludeFoldrBuild")
pRELUDE_IO	= SLIT("PreludeIO")
pRELUDE_LIST	= SLIT("PreludeList")
pRELUDE_PRIMIO	= SLIT("PreludePrimIO")
pRELUDE_PS	= SLIT("PreludePS")
pRELUDE_TEXT	= SLIT("PreludeText")

rATIO = SLIT("Ratio")

fromPrelude :: FAST_STRING -> Bool
fromPrelude s = (_SUBSTR_ s 0 6 == SLIT("Prelude"))
\end{code}