You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- ...nameFilterLens ={ get =.nameFilter
, set =\ p w ->{ w | nameFilter = p }}
... and Update.elm containing this:
importModelasModelexposing (Model)
useLens:Model->StringuseLens model =Model.nameFilterLens.get model --- <<< THIS LINE FAILS TO COMPILE
... I get this compiler message:
790 $ elm-make Update.elm
-- NAMING ERROR ----------------------------------------------------- Update.elm
Cannot find variable `Model.nameFilterLens.get`.
7| Model.nameFilterLens.get model
^^^^^^^^^^^^^^^^^^
No module called `Model.nameFilterLens` has been imported.
I was hoping that, since nameFilterLens is not capitalized, it wouldn't be taken as being part of a module name.
Full source is attached, with .elm extension changed to .txt to make Github happy.
Elm version is elm-make 0.18 (Elm Platform 0.18.0). OSX El Capitan 10.11.6
Given
Module.elm
containing this:... and
Update.elm
containing this:... I get this compiler message:
I was hoping that, since
nameFilterLens
is not capitalized, it wouldn't be taken as being part of a module name.Full source is attached, with
.elm
extension changed to.txt
to make Github happy.Elm version is
elm-make 0.18 (Elm Platform 0.18.0)
. OSX El Capitan 10.11.6Model.txt
Update.txt
The text was updated successfully, but these errors were encountered: