If I import the
Set module and then use the
Set type in a function definition I get an error that the type is not recognized.
import Set checkSet : Set Char -> Char -> (Bool, Set Char) checkSet s c = (False, s)
gives the error
I cannot find a `Set` type: 13| checkSet : Set Char -> Char -> (Bool, Set Char) ^^^ These names seem close though: Int Sub Cmd List Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import` declarations work in Elm.
However the same file with the same import CAN make use of a Set in a function without Set in the type annotation.
import Set checkSetLen: String -> Bool checkSetLen s = let len = Set.size (Set.fromList (String.toList s)) in len == String.length s
Is this a compiler bug?