augustss / MicroHs

Haskell implemented with combinators
Other
367 stars 25 forks source link

Possible bug #63

Closed Rewbert closed 3 weeks ago

Rewbert commented 1 month ago

Consider this program

module Example(main) where

main :: IO ()
main = do
  let x :: Int
      (_, x) = (10, 5)
  print x

It compiles perfectly well with GHC (with or without the Haskell98 flag), but not with MicroHaskell. If I remove the type signature, it compiles with MicroHaskell.

augustss commented 1 month ago

Yeah, that's a bug.

augustss commented 3 weeks ago

Fixed in 2cb9870808f0c9b8996ffc6c148d722d3b89b34c