Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Bodigrim's full-sized avatar

ˌbodʲɪˈɡrʲim Bodigrim

  • Odessa, Ukraine
View GitHub Profile
#!/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
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