Created
January 13, 2019 19:05
-
-
Save dwhitney/20b567549c39c3ed8b9ce150bab7570d to your computer and use it in GitHub Desktop.
Doesn't compile
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 | |
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