unclechuHey guys, about
checkboxinput is checked?
unclechuin purescript v0.11 i used to do it like that:
eventIsChecked :: Event -> Boolean eventIsChecked = unsafeCoerce >>> _.currentTarget.checked
I got this halogen app I made some typeclasses for:
In my top-level component, I can just specify the typeclasses in
render & child components, I need to add
Any idea why? Can I avoid this?
I was trying to parse a piece of code in the article ”A real World App with a comonadic UI" but I don't understand it.
class Pairing m w | m -> w, w -> m where pair :: (a -> b -> c) -> m a -> w b -> c select :: Pairing m w => m b -> w (w a) -> w a select = pair (\_ wa -> wa)
I don’t understand what
\_ does? Any ideas?
permission denied, mkdtemp '/home/ozaharia/.npm-global/lib/node_modules/purescript/node-purescript-MDgQnG' (node:25796) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, open '/home/ozaharia/.cache/purescript-npm-installer-nodejs/index-v5/90/cc/afa51ff139146ebe0e8b2b0a26d78342d4cbeb1020f4d3f80c109c4b5b7d' (node:25796) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:25796) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
sudo npm install -g purescript
/test/Main.pursfile and have it run. There's no premade
npm testscript. Is there a build in test runner I can use to just fool around with?
ids :: Array (forall t. t -> t)(which is accepted),
cons id ids(not accepted, which makes sense),
rcons ids id(this works surprisingly, for
rcons h t = cons t h) but
(flip cons) ids iddoes not work