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 DeriveGeneric #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
module Main where | |
import Control.Lens | |
import GHC.Generics |
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 KindSignatures #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main where | |
import Data.Coerce |
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 MultiParamTypeClasses #-} | |
{-# LANGUAGE TypeSynonymInstances #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main where | |
import Data.Coerce | |
import Data.Tagged | |
data Validated |
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 Main where | |
import Data.Coerce | |
data Validated | |
data Unvalidated | |
class AbstractError e | |
data MyError = MyError String deriving (Show) |
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
{ compiler ? "ghc844" }: | |
let | |
nixpkgs = import <nixpkgs> {}; | |
inherit (nixpkgs) pkgs stdenv; | |
in | |
# Make a new "derivation" that represents our shell | |
stdenv.mkDerivation { | |
name = "servant-dev"; |
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 KindSignatures #-} | |
{-# LANGUAGE RecordWildCards #-} | |
module Main where | |
-------------------------------------------------------------------------------- | |
import Data.Coerce | |
import Data.Foldable | |
-------------------------------------------------------------------------------- |
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
{ compiler ? "ghc865" }: | |
let | |
nixpkgs = import <nixpkgs> {}; | |
inherit (nixpkgs) pkgs stdenv; | |
in | |
# Make a new "derivation" that represents our shell | |
stdenv.mkDerivation { | |
name = "communication-dev"; |
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
# don't trigger on branch | |
trigger: | |
branches: | |
exclude: | |
- '*' | |
# trigger on pr | |
pr: | |
autoCancel: true | |
branches: |
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
==================== Asm code ==================== | |
.section .rodata.str,"aMS",@progbits,1 | |
.align 1 | |
.align 1 | |
$trModule1_r1Lj_bytes: | |
.asciz "main" | |
==================== Asm code ==================== |
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 OverloadedStrings #-} | |
module Service.TypesSpec where | |
-------------------------------------------------------------------------------- | |
import Test.Hspec | |
import Test.QuickCheck | |
-------------------------------------------------------------------------------- | |
import Data.List (nub) | |
import Data.Text (Text) |
NewerOlder