Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fnmatch breaks referential transparency #1

Open
fpringle opened this issue Mar 1, 2024 · 1 comment
Open

fnmatch breaks referential transparency #1

fpringle opened this issue Mar 1, 2024 · 1 comment

Comments

@fpringle
Copy link

fpringle commented Mar 1, 2024

fnmatch gives different outputs on successive calls with the same inputs:

ghci> import FnMatch as F
ghci> F.fnmatch "a" "a" []
False
ghci> F.fnmatch "a" "a" []
True

fnmatch version: 0.1.0.0
GHC version: 9.2.8
System: NixOS 23.05

@domenkozar
Copy link
Member

❯ stack ghci
Configuring GHCi with the following packages: fnmatch.
GHCi, version 9.6.3: https://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling FnMatch          ( /home/domen/dev/fnmatch/src/FnMatch.hs, interpreted )
Ok, one module loaded.
Loaded GHCi configuration from /home/domen/.cache/stack/ghci-script/1fc6c52b/ghci-script
ghci> import FnMatch as F
ghci> F.fnmatch "a" "a" []
True
ghci> F.fnmatch "a" "a" []
True
ghci> F.fnmatch "a" "a" []
True
ghci> 

domenkozar added a commit that referenced this issue Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants