-
Notifications
You must be signed in to change notification settings - Fork 141
[PureScript] Add module Undefined
as dependency
#676
Comments
We use psc-package so a package needs to be the one in package-sets. Is this package commonly used? It also needs to be compatible with See these issues and documentation |
Maybe updating to |
I might be wrong, but the package you're suggesting won't behave like Haskell's I think PureScriptcountSheep :: Int -> String
countSheep = ?undefined won't compile and shows
(I can see this can be annoying for more complex kata though) HaskellcountSheep :: Int -> String
countSheep = undefined will compile, but the error is
|
Good point - typed holes should provide a clearer error message than |
Unlike Haskell, PureScript does not have a polymorphic
undefined
value by default and enforces totality so it may be impossible to provide an initial solution that compiles in certain cases without resorting to ugly hacks such asUnsafe.Coerce.unsafeCoerce Prelude.unit
. However, a handy moduleUndefined
(source) with a valueundefined
has been made available in PureScript since April 2018 which does not appear to be available on Codewars. Please consider adding it as a dependency, thanks 😄The text was updated successfully, but these errors were encountered: