Adding explicit 'exposing'

This could be added in a different section later, but I got stuck tryig to follow along.
This commit is contained in:
Mads Hjorth 2021-11-25 12:36:57 +01:00 committed by GitHub
parent 6db2fcd505
commit 4c27c2b0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,10 @@ port load : (Json.Value -> msg) -> Sub msg
Above, we've created a `port module` that defines our `save` and `load` ports. Next, we'll describe the data we want to store, as well as how to convert it to and from JSON:
```elm
port module Storage exposing (..)
port module Storage exposing
( Storage, fromJson, onChange
, increment, decrement
)
import Json.Encode as Encode