1module ProjectM36.DataTypes.Primitive where
4primitiveTypeConstructorMapping :: TypeConstructorMapping
5primitiveTypeConstructorMapping = map (\(name, aType) ->
6 (PrimitiveTypeConstructorDef name aType, [])) prims
8 prims = [("Int", IntAtomType),
9 ("Text", TextAtomType),
10 ("Double", DoubleAtomType),
11 ("Bool", BoolAtomType),
12 ("ByteString", ByteStringAtomType)
15-- | Return the type of an 'Atom'.
16atomTypeForAtom :: Atom -> AtomType
17atomTypeForAtom (IntAtom _) = IntAtomType
18atomTypeForAtom (DoubleAtom _) = DoubleAtomType
19atomTypeForAtom (TextAtom _) = TextAtomType
20atomTypeForAtom (DayAtom _) = DayAtomType
21atomTypeForAtom (DateTimeAtom _) = DateTimeAtomType
22atomTypeForAtom (ByteStringAtom _) = ByteStringAtomType
23atomTypeForAtom (BoolAtom _) = BoolAtomType
24atomTypeForAtom (RelationAtom (Relation attrs _)) = RelationAtomType attrs
25atomTypeForAtom (ConstructedAtom _ aType _) = aType
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list