Skip to content
  • Ian Lynagh's avatar
    Improve an error message; fixes #984 · d2169af1
    Ian Lynagh authored
    This code:
        f _ = do
                x <- computation
                case () of
                        _ ->
                                result <- computation
                                case () of () -> undefined
    Now gives this error:
        Parse error in pattern: case () of { _ -> result }
        Possibly caused by a missing 'do'?
    d2169af1