Skip to content

"Unknown value discard" error has no file information #3418

Description

@natefaubion
module Main where

import Effect.Console (log)

main = do
  log "What"  
  log "Hello sailor!"
Error found:
in module Main
at  line 0, column 0 - line 0, column 0

  Unknown value discard. You're probably using do-notation, which the compiler replaces with calls to the discard function. Please import discard from module Prelude


See https://github.com/purescript/documentation/blob/master/errors/UnknownName.md for more information,
or to contribute content related to this error.

This yields an error record where the file name is an empty string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions