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
Clarinet.test({ | |
name: "ascii-to-buff", | |
runs: 1000, | |
logs: true, | |
data: { | |
text: { | |
minLength: 0, | |
maxLength: 127, | |
} | |
}, |
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
import { Clarinet, Tx, Chain, Account, types } | |
from 'https://deno.land/x/[email protected]/index.ts'; | |
import { assert, assertEquals } | |
from 'https://deno.land/[email protected]/testing/asserts.ts'; | |
import fc | |
from 'https://cdn.skypack.dev/fast-check'; | |
Clarinet.test({ |
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
resolver: | |
lts-11.22 | |
extra-deps: | |
- hedgehog-0.6.1 |
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
{-# LANGUAGE TemplateHaskell #-} | |
module Discordia.TH where | |
import Language.Haskell.Extract (functionExtractorMap) | |
import Language.Haskell.TH | |
import Test.Framework (defaultMain) | |
import Test.HUnit (Test(..)) | |
discover :: ExpQ |
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 SumProduct ( | |
KnownColor (..) | |
, RGB (..) | |
, redColor | |
, magenta | |
, red | |
) where | |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# OPTIONS_GHC -fno-warn-unused-imports #-} | |
import Control.Applicative | |
import Control.Monad | |
import Control.Monad.IO.Class | |
import Control.Monad.Trans.Except | |
import Data.Aeson |
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
# Last checked | |
# $ date | |
# Mon Feb 27 23:59:15 EEST 2017 | |
2017-02-17 https://fsharpforfunandprofit.com/cap/ | |
2017-02-17 https://fsharpforfunandprofit.com/turtle/ | |
2017-02-17 https://fsharpforfunandprofit.com/video/ | |
2016-12-05 https://fsharpforfunandprofit.com/posts/dependency-injection-1 | |
2016-08-01 https://fsharpforfunandprofit.com/installing-and-using/ | |
2016-06-23 https://fsharpforfunandprofit.com/parser/ |
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
name: Booking | |
version: 0.1.0.0 | |
synopsis: Handling a reservation request in Haskell. Proof of concept | |
description: Please see README.md | |
homepage: https://gist.github.com/ploeh/c999e2ae2248bd44d775 | |
license: MIT | |
license-file: LICENSE | |
author: Mark Seemann | |
maintainer: [email protected] | |
copyright: 2016 Mark Seemann |
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
// Port of Haskell | |
// - https://hackage.haskell.org/package/QuickCheck-1.2.0.1 | |
// - https://hackage.haskell.org/package/random-1.1 | |
namespace LightCheck | |
/// <summary> | |
/// This module deals with the common task of pseudo-random number generation. | |
/// It makes it possible to generate repeatable results, by starting with a | |
/// specified initial random number generator, or to get different results on |
NewerOlder