Skip to content

Instantly share code, notes, and snippets.

@hrajchert
Created May 30, 2022 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrajchert/f8636651f65b53c009e6283f7860e831 to your computer and use it in GitHub Desktop.
Save hrajchert/f8636651f65b53c009e6283f7860e831 to your computer and use it in GitHub Desktop.
Something new
{-# LANGUAGE OverloadedStrings #-}
module Example where
import Language.Marlowe.Extended
main :: IO ()
main = printJSON $ contract
{- Define a contract, Close is the simplest contract which just ends the contract straight away
my new contract
-}
contract :: Contract
contract = Close
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment