Skip to content

Instantly share code, notes, and snippets.

@sigma-andex
Created June 9, 2022 12:24
Show Gist options
  • Save sigma-andex/085af07ddd9060dada12f10ccff8c4fe to your computer and use it in GitHub Desktop.
Save sigma-andex/085af07ddd9060dada12f10ccff8c4fe to your computer and use it in GitHub Desktop.
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