Skip to content

Commit

Permalink
Fix build with text 2.1.2 (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst authored Nov 1, 2024
1 parent 944804f commit 9d15de0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Miso/FFI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import Language.Javascript.JSaddle hiding (obj, val)
#else
import Language.Javascript.JSaddle hiding (Success, obj, val)
#endif
import Miso.String
import Miso.String hiding (show)

-- | Run given `JSM` action asynchronously, in a separate thread.
forkJSM :: JSM () -> JSM ()
Expand Down
2 changes: 1 addition & 1 deletion src/Miso/Html/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import Text.HTML.TagSoup (Tag(..))
import Miso.Effect
import Miso.Event
import Miso.FFI
import Miso.String hiding (reverse, elem)
import Miso.String hiding (reverse, elem, show )

-- | Core type for constructing a `VTree`, use this instead of `VTree` directly.
data View action
Expand Down
2 changes: 1 addition & 1 deletion src/Miso/Subscription/History.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import Miso.Concurrent
import Miso.Effect (Sub)
import Miso.FFI
import qualified Miso.FFI.History as FFI
import Miso.String
import Miso.String hiding (show)
import Network.URI hiding (path)
import System.IO.Unsafe

Expand Down
8 changes: 4 additions & 4 deletions text-src/Miso/String.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ instance ToMisoString B.ByteString where
instance ToMisoString BL.ByteString where
toMisoString = toMisoString . LT.decodeUtf8
instance ToMisoString Float where
toMisoString = T.pack . show
toMisoString = T.pack . Prelude.show
instance ToMisoString Double where
toMisoString = T.pack . show
toMisoString = T.pack . Prelude.show
instance ToMisoString Int where
toMisoString = T.pack . show
toMisoString = T.pack . Prelude.show
instance ToMisoString Word where
toMisoString = T.pack . show
toMisoString = T.pack . Prelude.show

instance FromMisoString MisoString where
fromMisoStringEither = Right
Expand Down

0 comments on commit 9d15de0

Please sign in to comment.