Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 487 Bytes

File metadata and controls

34 lines (22 loc) · 487 Bytes

RedefinedIdent Error

Example

module Example where

a = 3

a = 5

Cause

You have defined a value with the same name multiple times.

Fix

  • Rename one of the variables. In this example:
    a = 3
    
    a' = 5

Notes

  • This error also occurs if you have multiple clauses for a function, where you misspelled the function name once. For Example:
    bar [] = 10
    barr [2] = 2
    bar x = length x