From 6bd5f8ccbd8c44c3311ef36b0e2de9ede4fa71ed Mon Sep 17 00:00:00 2001
From: Jakub Hampl <kopomir@gmail.com>
Date: Thu, 14 Feb 2019 15:23:49 +0000
Subject: New Style Generator (#8)

---
 src/Mapbox/Expression.elm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/Mapbox/Expression.elm b/src/Mapbox/Expression.elm
index 08f9f20..109a440 100644
--- a/src/Mapbox/Expression.elm
+++ b/src/Mapbox/Expression.elm
@@ -146,6 +146,7 @@ module Mapbox.Expression
         , toBool
         , toColor
         , toFloat
+        , toFormattedText
         , toString
         , true
         , typeof
@@ -220,7 +221,7 @@ if the type is wrong:
 
 You can also use these functions to explicitly cast to a particular type:
 
-@docs toBool, toColor, toFloat, toString
+@docs toBool, toColor, toFloat, toString, toFormattedText
 
 @docs typeof
 
@@ -953,6 +954,13 @@ toString =
     call1 "to-string"
 
 
+{-| Just like `toString`, but outputs a formatted string useable for displaying to users.
+-}
+toFormattedText : Expression exprType any -> Expression exprType FormattedText
+toFormattedText =
+    call1 "to-string"
+
+
 {-| Returns a string describing the type of the given value.
 -}
 typeof : Expression exprType any -> Expression exprType String
-- 
cgit v1.2.3