Last active
September 14, 2021 22:04
-
-
Save klarkc/b7f41ba640cfba0bab6ddc441dd13add to your computer and use it in GitHub Desktop.
PureScript Compiler error
This file contains 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 | |
import Effect (Effect) | |
import Signal (Signal) as S | |
import Signal.DOM (Touch, touch) as S.DOM | |
type Touch = S.DOM.Touch | |
type Signal = S.Signal | |
type State = { | |
touchs :: Array Touch | |
} | |
type DerivatedState = { | |
input ::State | |
} | |
initState :: State | |
initState = { touchs: [] } | |
touch :: Effect ( Signal (Array Touch) ) | |
touch = S.DOM.touch | |
initDerivatedState :: Effect DerivatedState | |
initDerivatedState = do | |
input <- initState | |
pure { input } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment