Skip to content

Instantly share code, notes, and snippets.

@guibou
Created May 24, 2022 19:15
Show Gist options
  • Select an option

  • Save guibou/a9630b5e4dbfa794d70788a297db08d2 to your computer and use it in GitHub Desktop.

Select an option

Save guibou/a9630b5e4dbfa794d70788a297db08d2 to your computer and use it in GitHub Desktop.

Revisions

  1. guibou created this gist May 24, 2022.
    7 changes: 7 additions & 0 deletions Evil.hs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    cases :: [a] -> String
    cases _ = "Hello"

    fiz = \cases l -> cases

    main = do
    putStrLn $ fiz "Chien" []
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@

    [nix-shell:~]$ runhaskell Evil.hs
    Chien

    [nix-shell:~]$ runhaskell -XLambdaCase Evil.hs
    Hello