git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #2387 from rightfold/patch-1

Update outdated comments about Prim types

commitc0ec8309666a139b6fb5b9637e1855e430e85b80 authorPhil Freeman <paf31@cantab.net> dateWed 12 Oct 2016, 09:40 (10 years ago) parenta70b5dd0ab0f9a
1 file changed+5−4
src/Language/PureScript/Environment.hs+5−4
src/Language/PureScript/Environment.hs+5−4
@@ -236,8 +236,8 @@ function t1 = TypeApp (TypeApp tyFunction t1)
236236
237237-- |
238238-- The primitive types in the external javascript environment with their
239−-- associated kinds. There is also a pseudo `Partial` type that corresponds to
240−-- the class with the same name.
239+-- associated kinds. There are also pseudo `Fail` and `Partial` types
240+-- that correspond to the classes with the same names.
241241--
242242primTypes :: M.Map (Qualified (ProperName 'TypeName)) (Kind, TypeKind)
243243primTypes =
@@ -257,8 +257,9 @@ primTypes =
257257 ]
258258
259259-- |
260−-- The primitive class map. This just contains to `Partial` class, used as a
261−-- kind of magic constraint for partial functions.
260+-- The primitive class map. This just contains the `Fail` and `Partial`
261+-- classes. `Partial` is used as a kind of magic constraint for partial
262+-- functions. `Fail` is used for user-defined type errors.
262263--
263264primClasses :: M.Map (Qualified (ProperName 'ClassName)) TypeClassData
264265primClasses =