_ . at 0 ?~ "wololo"
ghc: panic! (the 'impossible' happened)
(GHC version 9.2.1:
mkCoCast
(Num (Sym (D:R:IndexIntMap[0] <[Char]>_N)))_R
Num Int ~ Num (Index (IntMap [Char]))
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Panic.hs:181:37 in ghc:GHC.Utils.Panic
pprPanic, called at compiler/GHC/Core/Coercion.hs:1640:5 in ghc:GHC.Core.Coercion
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
АХАХА
ну и славно, уже не напрасно набросил
давай в копилку $ cabal repl 1 Build profile: -w ghc-9.2.3 -O1 In order, the following will be built (use -v for more details): - haskell-stuff-0.1.0.0 (exe:haskell-stuff) (file app/Main.hs changed) Preprocessing executable 'haskell-stuff' for haskell-stuff-0.1.0.0.. GHCi, version 9.2.3: https://www.haskell.org/ghc/ :? for help <interactive>:1:1: error: [-Wmissing-local-signatures, -Werror=missing-local-signatures] Polymorphic local binding with no type signature: _compileParsedExpr :: forall {a}. ghc-prim:GHC.Types.IO a -> ghc-prim:GHC.Types.IO a cabal: repl failed for exe:haskell-stuff from haskell-stuff-0.1.0.0.
Обсуждают сегодня