Created
October 15, 2015 12:43
-
-
Save jbrownson/fa4d84f64b171bf42e4b to your computer and use it in GitHub Desktop.
infinite type error using purescript-react
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Prelude (($), unit, bind, pure) | |
| import React (createClass, spec, getProps) | |
| import qualified React.DOM as D | |
| import qualified React.DOM.Props as P | |
| f = createClass $ spec unit \this -> do | |
| x <- getProps this | |
| y <- x 42 | |
| pure $ D.div' [] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error: