- Monday, August 6: Chapter 16 hosted by Charlottesville Haskell Book Reading Group in Charlottesville, va, USA
- Monday, August 6: Combinating - The Weekly Function hosted by Orange Combinator - Functional Programming In OC in Irvine, CA
- Tuesday, August 7: Techniques in Functional JavaScript hosted by NoFUN - New Orleans Functional Programming in New Orleans, USA
- Tuesday, August 7: [Lightning talks / Show and tell](https://www.meetup.
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
-- Like Ratio but not broken. | |
module Quotient | |
( Quotient | |
, quotient | |
, unsafeQuotient | |
, (%) | |
, numerator | |
, denominator | |
, fromRatio | |
, toRatio |
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
60,974,182,000 bytes allocated in the heap | |
263,226,596,160 bytes copied during GC | |
652,502,280 bytes maximum residency (815 sample(s)) | |
3,177,208 bytes maximum slop | |
622 MB total memory in use (0 MB lost due to fragmentation) | |
Tot time (elapsed) Avg pause Max pause | |
Gen 0 57804 colls, 0 par 2.359s 2.372s 0.0000s 0.0006s | |
Gen 1 815 colls, 0 par 245.031s 246.321s 0.3022s 0.6341s |
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 stack | |
-- stack --resolver lts-13.0 script | |
{-# OPTIONS_GHC -Weverything -Wno-implicit-prelude -Wno-unsafe #-} | |
module Main ( main ) where | |
import qualified Data.Aeson | |
import qualified Data.Aeson.Types | |
import qualified Data.List | |
import qualified Data.Ord |
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
-- This whole thing is shamelessly stolen from: | |
-- <https://doisinkidney.com/snippets/nary-uncurry.html>. | |
-- Without flexible instances, GHC complains about the `HasApply` instances: | |
-- | |
-- > Illegal instance declaration for `HasApply a Z`. All instance types must | |
-- > be of the form `(T a1 ... an)` where `a1 ... an` are *distinct type | |
-- > variables*, and each type variable appears at most once in the instance | |
-- > head. | |
-- |
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 stack | |
-- stack --resolver lts-12.10 script | |
{-# OPTIONS_GHC -Weverything -Wno-unsafe -Wno-implicit-prelude #-} | |
module Main ( main ) where | |
import qualified Control.Concurrent as Concurrent | |
import qualified Control.Monad as Monad | |
import qualified Control.Monad.Catch as Catch | |
import qualified Control.Monad.IO.Class as IO | |
import qualified Data.Map as Map | |
import qualified Data.Maybe as Maybe |
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 stack | |
-- stack --resolver lts-10.0 script | |
module Main | |
( main | |
) | |
where | |
import qualified Control.Monad as Monad | |
import qualified Data.ByteString as ByteString |
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
replays/0ad2.replay Offline | |
replays/000b.replay Private | |
replays/1a12.replay Offline | |
replays/1ae4.replay Offline | |
replays/1bc2.replay Offline | |
replays/1d1d.replay Offline | |
replays/1ef9.replay Private | |
replays/1f37.replay Offline | |
replays/2cfe.replay Online | |
replays/3abd.replay LAN |
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 stack | |
-- stack --resolver nightly-2018-06-01 script --compile | |
-- To run this, first install Stack: <https://haskellstack.org>. | |
-- Then run this from the command line: `stack edit-replay.hs input.replay output.replay` | |
module Main ( main ) where | |
import qualified Data.ByteString.Lazy as L | |
import qualified Data.Map as M |
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
{ | |
"packages": [ | |
{ | |
"location": "https://hackage.haskell.org/package/3d-graphics-examples", | |
"name": "3d-graphics-examples" | |
}, | |
{ | |
"location": "https://hackage.haskell.org/package/3dmodels", | |
"name": "3dmodels" | |
}, |