This file contains hidden or 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 DefaultSignatures #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE TypeOperators #-} | |
module GenericIso where | |
import Data.Coerce | |
import GHC.Generics |
This file contains hidden or 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
$ ./dist/build/bench-builder-all/bench-builder-all | |
benchmarking flat | |
time 4.075 µs (4.061 µs .. 4.092 µs) | |
1.000 R² (0.999 R² .. 1.000 R²) | |
mean 4.108 µs (4.098 µs .. 4.140 µs) | |
std dev 54.60 ns (2.279 ns .. 114.0 ns) | |
variance introduced by outliers: 10% (moderately inflated) | |
benchmarking vinyl | |
time 62.27 µs (62.25 µs .. 62.28 µs) |
This file contains hidden or 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
$ cabal bench | |
Preprocessing benchmark 'benchmarks' for hashable-1.2.5.0... | |
Running 1 benchmarks... | |
Benchmark benchmarks: RUNNING... | |
benchmarking hashPtr/5 | |
time 3.960 ns (3.959 ns .. 3.961 ns) | |
1.000 R² (1.000 R² .. 1.000 R²) | |
mean 3.960 ns (3.959 ns .. 3.962 ns) | |
std dev 3.764 ps (2.231 ps .. 5.785 ps) |
This file contains hidden or 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 ConstraintKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeInType #-} | |
{-# LANGUAGE TypeOperators #-} | |
module Main where |
This file contains hidden or 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
FROM fpco/stack-build:lts-5.16 | |
MAINTAINER Ryan Scott | |
RUN apt-get update && apt-get install -y \ | |
faketime | |
ADD lorem-ipsum.txt /root/lorem-ipsum.txt | |
ADD entrypoint.sh /root/entrypoint.sh | |
RUN chmod +x /root/entrypoint.sh |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
Archive member included to satisfy reference by file (symbol) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__165.o) | |
(base_ControlziExceptionziBase_nonTermination_closure) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__166.o) | |
(base_ControlziExceptionziBase_nestedAtomically_closure) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__167.o) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__166.o) (base_ControlziExceptionziBase_NestedAtomically_closure) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__168.o) | |
C:\Users\RyanGlScott\Software\ghc-8.0.1-x86\lib\base-4.9.0.0/libHSbase-4.9.0.0.a(Base__165.o) (base_ControlziExceptionziBase_NonTermination_closure) |
This file contains hidden or 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
Running aeson-benchmark-dates... | |
benchmarking decode/UTCTime/whole | |
time 16.89 μs (16.86 μs .. 16.95 μs) | |
1.000 R² (1.000 R² .. 1.000 R²) | |
mean 16.90 μs (16.87 μs .. 16.95 μs) | |
std dev 112.0 ns (60.86 ns .. 183.7 ns) | |
benchmarking decode/UTCTime/fractional | |
time 17.86 μs (17.85 μs .. 17.88 μs) | |
1.000 R² (1.000 R² .. 1.000 R²) |
This file contains hidden or 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 ConstraintKinds #-} | |
{-# LANGUAGE CPP #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeFamilyDependencies #-} |
This file contains hidden or 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 StandaloneDeriving #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
-- | Fleshing out a new design for Generic1 that doesn't use Functor contexts | |
-- for derived instances, but rather Coercible. Why would we want this? | |
-- Consider this derived Generic1 instance: | |
-- | |
-- data T f a = T (f [a]) deriving Generic1 |
This file contains hidden or 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 AllowAmbiguousTypes #-} | |
{-# LANGUAGE DefaultSignatures #-} | |
{-# LANGUAGE EmptyCase #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeFamilyDependencies #-} |