Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build with text 2.1.2 #752

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading