blob: ad3e0e94babd4fb12d0685307e9c10610e278997 (
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
43
44
45
|
{-# LANGUAGE DeriveDataTypeable #-}
module Language.Haskell.Syntax.Basic where
import Data.Int (Int)
import Data.Eq
import Data.Bool
import Data.Data
{-
************************************************************************
* *
Boxity
* *
************************************************************************
-}
data Boxity
= Boxed
| Unboxed
deriving( Eq, Data )
isBoxed :: Boxity -> Bool
isBoxed Boxed = True
isBoxed Unboxed = False
{-
************************************************************************
* *
Counts and indices
* *
************************************************************************
-}
-- | The width of an unboxed sum
type SumWidth = Int
-- | A *one-index* constructor tag
--
-- Type of the tags associated with each constructor possibility or superclass
-- selector
type ConTag = Int
|