Skip to content

Instantly share code, notes, and snippets.

View Bodigrim's full-sized avatar

ˌbodʲɪˈɡrʲim Bodigrim

  • Odessa, Ukraine
View GitHub Profile
module Main where
import Test.Tasty
import Test.Tasty.Providers
data Foo = Foo
instance IsTest Foo where
testOptions = pure []
run _ _ _ = pure $ testPassed ""
#!/usr/bin/env cabal
{- cabal:
build-depends:
ansi-terminal < 1.2,
base >= 4.16,
bytestring < 0.13,
cabal-install-parsers < 0.7,
Cabal-syntax >= 3.8,
containers < 0.8,
strict < 0.6,
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
{-# HLINT ignore "Avoid restricted function" #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# OPTIONS_GHC -Wno-missing-fields #-}
module Pred where
import Control.Exception
import GHC.Exts.Heap
#!/usr/bin/env cabal
{- cabal:
build-depends: base >= 4.19, bytestring, containers
default-language: GHC2021
-}
{-# LANGUAGE ExtendedLiterals #-}
{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -Wall -O2 -threaded #-}
@Bodigrim
Bodigrim / classes.mermaid
Last active November 3, 2023 18:11
Haskell type classes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Bodigrim
Bodigrim / Tuple.hs
Created September 10, 2023 10:37
Data.Ord.Tuple
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DerivingVia #-}
{-# OPTIONS_GHC -ddump-simpl #-}
{-# OPTIONS_GHC -dsuppress-all #-}
{-# OPTIONS_GHC -dno-suppress-type-signatures #-}
module Main where
import Control.Monad
import Debug.Trace
import GHC.Exts
import GHC.ST
import Data.STRef
foo :: Integer
foo = runST $ do
Geometric mean 0.33257 -0.47812
Name master branch utf8 branch Ratio Log Ratio
All.Builder.Comparison.LazyText 2308956275 2180128096 0.944 -0.025
All.Builder.Int.Decimal.Positive.1 77516 39081 0.504 -0.297
All.Builder.Int.Decimal.Positive.2 84786 54459 0.642 -0.192
All.Builder.Int.Decimal.Positive.3 92039 60875 0.661 -0.180
All.Builder.Int.Decimal.Positive.4 104124 64747 0.622 -0.206
All.Builder.Int.Decimal.Positive.5 101993 70058 0.687 -0.163
All.Builder.Int.Decimal.Positive.6 108117 73947 0.684 -0.165
All.Builder.Int.Decimal.Positive.7 106745 78265 0.733 -0.135