Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
Fixes display of Unicode characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jweir committed May 12, 2016
1 parent 4781ad2 commit c8b41dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions elm-reactor.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Executable elm-reactor
base >=4.2 && <5,
blaze-html,
blaze-markup,
utf8-string,
bytestring,
cmdargs,
containers,
Expand Down
4 changes: 2 additions & 2 deletions src/backend/Generate/Index.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Generate.Index (toHtml, getInfo, getPkg) where
import Control.Monad
import Control.Monad.Except (ExceptT, liftIO, runExceptT, throwError)
import Data.Aeson as Json
import qualified Data.ByteString.Lazy.Char8 as LBSC
import qualified Data.ByteString.Lazy.UTF8 as BSU8
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Data.Text as Text
Expand Down Expand Up @@ -77,7 +77,7 @@ toHtml info@(Info pwd _ _ _ _) =
Help.makeHtml
(List.intercalate "/" ("~" : pwd))
("/" ++ StaticFiles.indexPath)
("Elm.Index.fullscreen(" ++ LBSC.unpack (Json.encode info) ++ ");")
("Elm.Index.fullscreen(" ++ BSU8.toString (Json.encode info) ++ ");")



Expand Down

0 comments on commit c8b41dc

Please sign in to comment.