Created
June 9, 2022 12:24
-
-
Save sigma-andex/085af07ddd9060dada12f10ccff8c4fe to your computer and use it in GitHub Desktop.
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 Effect.Class.Console (logShow) | |
import Effect.Console (log) | |
import Record as Record | |
mergeFlipped = flip Record.merge | |
infixr 1 mergeFlipped as // | |
person | |
:: { age :: Int | |
, firstName :: String | |
, professional :: String | |
} | |
person = { firstName: "Hans", professional: true } // | |
{ professional: "Software Engineer", age: 58 } | |
main :: Effect Unit | |
main = do | |
logShow person |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment