module Graphics.Gnuplot.Private.Encoding where

import Graphics.Gnuplot.Utility (listFromMaybeWith)

newtype T = Cons String

format :: T -> String
format :: T -> String
format (Cons String
enc) = String
"set encoding " String -> String -> String
forall a. [a] -> [a] -> [a]
++ String
enc

formatMaybe :: Maybe T -> [String]
formatMaybe :: Maybe T -> [String]
formatMaybe = (T -> String) -> Maybe T -> [String]
forall a b. (a -> b) -> Maybe a -> [b]
listFromMaybeWith T -> String
format