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
| #!/usr/bin/env cabal | |
| {- cabal: | |
| build-depends: base, directory, process | |
| ghc-options: -Wall | |
| -} | |
| -- https://gitlab.haskell.org/ghc/ghc/-/issues/27130 | |
| import qualified Control.Exception as Exception | |
| import qualified Control.Monad as Monad |
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
| #!/usr/bin/env bash | |
| # Unified Generic deriving benchmark | |
| # Tests compile-time (allocations + time) and runtime (to . from round-trip) | |
| # for record types (N fields) and sum types (N constructors), | |
| # comparing -fdirect-core-generic-deriving vs -fno-direct-core-generic-deriving. | |
| set -euo pipefail | |
| GHC="${GHC:-./_build/stage1/bin/ghc}" | |
| OPT="${OPT:--O0}" |
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
| #! /usr/bin/env cabal | |
| {- cabal: | |
| build-depends: base, random, time | |
| -} | |
| import qualified Data.Time as Time | |
| import qualified System.Random as Random | |
| main :: IO () | |
| main = | |
| putStrLn |
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 DeriveGeneric #-} | |
| {-# LANGUAGE DerivingVia #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE StandaloneDeriving #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE UndecidableInstances #-} |
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
| #! /usr/bin/env cabal | |
| {- cabal: | |
| build-depends: | |
| base, | |
| bytestring, | |
| entropy, | |
| tasty-bench, | |
| time, | |
| uuid, | |
| ghc-options: |
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
| module HW_Answer where | |
| import qualified Data.Text as Text | |
| import qualified Data.Vector as Vector | |
| import qualified HW_Other as Other | |
| data Answer | |
| = Single (Vector.Vector Text.Text) | |
| | Multi Other.Other (Vector.Vector Text.Text) | |
| | Extension (Vector.Vector Text.Text) |
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
Show hidden characters
| { | |
| "customizations": { | |
| "vscode": { | |
| "extensions": [ | |
| "haskell.haskell" | |
| ] | |
| } | |
| }, | |
| "dockerComposeFile": "compose.yaml", | |
| "service": "devcontainer", |
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
| module DisableWarnings where | |
| import qualified Data.List as List | |
| import qualified GHC.Data.Bag as Bag | |
| import qualified GHC.Data.IOEnv as IOEnv | |
| import qualified GHC.Plugins as Plugins | |
| import qualified GHC.Tc.Types as Tc | |
| import qualified GHC.Types.Error as Error | |
| plugin :: Plugins.Plugin |
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
| #! /usr/bin/env sh | |
| set -o errexit | |
| # https://github.com/haskell-servant/servant/issues/986 | |
| ############################################################################### | |
| # Print out various system information. | |
| date | |
| lsb_release --all |
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
| module HW_Answer where | |
| import qualified Data.Text as Text | |
| import qualified Data.Vector as Vector | |
| import qualified HW_Other as Other | |
| data Answer | |
| = Single (Vector.Vector Text.Text) | |
| | Multi Other.Other (Vector.Vector Text.Text) | |
| | Extension (Vector.Vector Text.Text) |
NewerOlder