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
{-# LANGUAGE ImplicitParams #-} | |
{-# LANGUAGE DeepSubsumption #-} | |
import Prelude | |
main :: IO () | |
main = let ?implicit = "yeah" in flipOut printImplicit | |
where | |
printImplicit :: (?implicit :: String) => IO () | |
printImplicit = putStrLn ?implicit |
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
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
inputs.poetry2nix.url = "github:nix-community/poetry2nix"; | |
outputs = { self, nixpkgs, poetry2nix }: | |
let | |
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; | |
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | |
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system}); | |
in |
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
module TextIssue where | |
import Data.Text qualified as Text | |
import Data.Text.IO qualified as Text | |
import System.IO | |
import Network.Socket | |
working :: IO () | |
working = do | |
input <- Text.hGetLine stdin |
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
cabal-version: 3.0 | |
name: cabal-bug | |
version: 0.1.0.0 | |
build-type: Simple | |
flag breaks | |
description: Breaks parsing main-hs. | |
executable cabal-bug-exe | |
default-language: Haskell2010 |
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
{ nixpkgs ? import ../nixpkgs-overlayed.nix }: | |
let | |
rLibs = [ nixpkgs.pkgs.rPackages.tseries nixpkgs.pkgs.rPackages.forecast ]; | |
r = nixpkgs.rWrapper.override { | |
packages = [ rLibs ]; | |
}; |
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
{ nixpkgs ? import ../nix/nixpkgs-overlayed.nix }: | |
let | |
common = import ../common { inherit nixpkgs; }; | |
frontend = import ../frontend { inherit nixpkgs; }; | |
r = import ../nix/r { inherit nixpkgs; }; | |
overrides = drv: { | |
buildInputs = drv.buildInputs ++ [r]; |
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
λ: (flip cacheRecipes') | |
<function> | |
it :: [Int] -> Text -> IO () | |
λ: :t (unsafeRight <$> getAuth) | |
(unsafeRight <$> getAuth) :: IO Data.Text.Internal.Text | |
λ: :t ((flip cacheRecipes') [67555]) | |
((flip cacheRecipes') [67555]) :: Text -> IO () | |
λ: :t (unsafeRight <$> getAuth) >> ((flip cacheRecipes') [67555]) | |
<interactive>:1:31: error: |