Skip to content

Instantly share code, notes, and snippets.

@JimiPorter
Created June 23, 2022 07:42
Show Gist options
  • Save JimiPorter/66e49751419244f7f794260d308f1b88 to your computer and use it in GitHub Desktop.
Save JimiPorter/66e49751419244f7f794260d308f1b88 to your computer and use it in GitHub Desktop.
New Project
{-# 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
-}
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