$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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 Implem01 | |
open System | |
//These are type aliases | |
type Age = int | |
type FirstName = string | |
type LastName = string | |
//This is a product type : Record |
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 Implem02 | |
open System | |
type Age = int | |
type FirstName = string | |
type LastName = string | |
type Person = | |
{ FirstName : FirstName |
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 Implem03 | |
open System | |
type Age = int | |
type FirstName = string | |
type LastName = string | |
type Person = | |
{ FirstName : FirstName |
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 Implem04 | |
open System | |
type Age = int | |
type FirstName = string | |
type LastName = string | |
type Person = | |
{ FirstName : FirstName |
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
sudo apt-get update | |
sudo apt-get install curl -y | |
sudo apt-get install emacs25-nox -y | |
sudo apt-get install git -y | |
curl -sSL https://get.haskellstack.org/ | sh |
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
-- http://codingdojo.org/kata/FooBarQix/ | |
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Text as T | |
import qualified Data.Map.Strict as M | |
import qualified Data.Char as C | |
import qualified Data.List as L | |
import Data.Maybe (catMaybes, fromMaybe) | |
newtype Digit = D Text |
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 DuplicateRecordFields #-} | |
{-# LANGUAGE OverloadedLabels #-} | |
module Main where | |
import Core as C | |
import Protolude | |
import Dhall | |
import System.Environment (getArgs) | |
import GHC.Natural (naturalToInt) |
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
#!/usr/bin/env cabal | |
{-# LANGUAGE OverloadedStrings #-} | |
{- cabal: | |
build-depends: | |
, base ^>= 4.13.0.0 | |
, unliftio ^>= 0.2.13.1 | |
, text ^>= 1.2.4.0 | |
, transformers ^>= 0.5.6.2 | |
-} |
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
#!/usr/bin/env cabal | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{- cabal: | |
build-depends: | |
, base ^>= 4.13.0.0 | |
, text ^>= 1.2.4.0 | |
, transformers ^>= 0.5.6.2 |