Skip to content

Commit

Permalink
add some more comments/FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
decioferreira committed Dec 8, 2024
1 parent 5acef0b commit 3d6aa22
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/Compiler/Elm/Package.elm
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ import Json.Encode as Encode
-- PACKAGE NAMES


{-| This has been simplified from `Name Author Project` as part of the work for
`System.TypeCheck.IO`.
-}
type alias Name =
( String, String )
( Author, Project )


toString : Name -> String
Expand Down
24 changes: 21 additions & 3 deletions src/System/TypeCheck/IO.elm
Original file line number Diff line number Diff line change
Expand Up @@ -178,26 +178,34 @@ sequenceAList =



-- Point (Compiler.Type.UnionFind)
-- POINT


{-| FIXME Compiler.Type.UnionFind
-}
type Point
= Pt Int


{-| FIXME Compiler.Type.UnionFind
-}
type PointInfo
= Info Int Int
| Link Point



-- DESCRIPTORS (Compiler.Type.Type)
-- DESCRIPTORS


{-| FIXME Compiler.Type.Type
-}
type Descriptor
= Descriptor Content Int Mark (Maybe Variable)


{-| FIXME Compiler.Type.Type
-}
type Content
= FlexVar (Maybe String)
| FlexSuper SuperType (Maybe String)
Expand All @@ -208,6 +216,8 @@ type Content
| Error


{-| FIXME Compiler.Type.Type
-}
type SuperType
= Number
| Comparable
Expand All @@ -219,6 +229,8 @@ type SuperType
-- MARKS


{-| FIXME Compiler.Type.Type
-}
type Mark
= Mark Int

Expand All @@ -227,10 +239,14 @@ type Mark
-- TYPE PRIMITIVES


{-| FIXME Compiler.Type.Type
-}
type alias Variable =
Point


{-| FIXME Compiler.Type.Type
-}
type FlatType
= App1 Canonical String (List Variable)
| Fun1 Variable Variable
Expand All @@ -241,8 +257,10 @@ type FlatType



-- CANONICAL (Compiler.Elm.ModuleName)
-- CANONICAL


{-| FIXME Compiler.Elm.ModuleName
-}
type Canonical
= Canonical ( String, String ) String

0 comments on commit 3d6aa22

Please sign in to comment.