コンパイラのバグだが、こんな感じのエラーがでることがある
Dependencies loaded from local cache.
Dependencies ready!
[================================== ] - 18 / 26elm: Used toAnnotation on a type that is not well-formed
CallStack (from HasCallStack):
error, called at compiler/src/Type/Type.hs:414:21 in main:Type.Type
[============================================== ] - 24 / 26elm: thread blocked indefinitely in an MVar operation
これはelm-stuffを消しても治らない。
発現条件は、以下のようなExtensible Recordの使い方
type alias Hogeable a =
{ hoge : String }
hogehoge : Hogeable () -> String
hogehoge { hoge } =
hoge
つまり、上のコードは下のように書き直せばよい
type alias Hogeable a =
{ hoge : String }
+hogehoge : Hogeable a -> String
hogehoge { hoge } =
hoge