Skip to content

Instantly share code, notes, and snippets.

@klarkc
Last active September 14, 2021 22:04
Show Gist options
  • Save klarkc/b7f41ba640cfba0bab6ddc441dd13add to your computer and use it in GitHub Desktop.
Save klarkc/b7f41ba640cfba0bab6ddc441dd13add to your computer and use it in GitHub Desktop.
PureScript Compiler error
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