Skip to content

Instantly share code, notes, and snippets.

@dwhitney
Created January 13, 2019 19:05
Show Gist options
  • Save dwhitney/20b567549c39c3ed8b9ce150bab7570d to your computer and use it in GitHub Desktop.
Save dwhitney/20b567549c39c3ed8b9ce150bab7570d to your computer and use it in GitHub Desktop.
Doesn't compile
module Main where
import Prelude
import Effect (Effect)
import Effect.Console (logShow)
import Prim.Row (class Union)
type Layout =
( x :: String
, y :: String
)
type View c =
( a :: String
, b :: String
, c :: Record c
)
view
:: forall attrs0 attrs0_ attrs1 attrs1_
. Union attrs1 attrs1_ (View attrs0)
=> Union attrs0 attrs0_ Layout
=> Record attrs1
-> String
view rec = ""
main :: Effect Unit
main = do
logShow $ view { a : "a" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment