From 4c27c2b0c240080e61555916ff90251a81a3d39a Mon Sep 17 00:00:00 2001 From: Mads Hjorth Date: Thu, 25 Nov 2021 12:36:57 +0100 Subject: [PATCH] Adding explicit 'exposing' This could be added in a different section later, but I got stuck tryig to follow along. --- docs/public/content/examples/03-storage.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/public/content/examples/03-storage.md b/docs/public/content/examples/03-storage.md index ceaeb1d..3977eff 100644 --- a/docs/public/content/examples/03-storage.md +++ b/docs/public/content/examples/03-storage.md @@ -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