This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initBackground(); | |
globalThis['renderPage'] = function () { | |
console.log('in main'); | |
console.log('getting global emitter in main should fail', 'getJSModule' in lynx); | |
const context = lynx.getJSContext(); | |
console.log('js context', context); | |
// dmj: this works | |
context.addEventListener("message", (event) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>WebSocket API Example</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE TypeApplications #-} | |
module TailwindUI.Components where | |
import Miso | |
import Miso.String (MisoString, ms) | |
import qualified Data.Map as Map | |
-- ======================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module DaisyUI where | |
import Miso | |
import Miso.String (MisoString, ms) | |
-- Action type for all component interactions | |
data Action | |
= ButtonClicked MisoString | |
| AccordionToggled Int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build failed. | |
error: builder for '/nix/store/4nb133jpb8np159fs5c63gjn35h5pl0k-wasm32-unknown-wasi-ghc-native-bignum-9.6.5.drv' failed with exit code 1; | |
last 10 log lines: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List (foldl', tails) | |
import Data.Map.Internal.Debug | |
import qualified Data.Map.Strict as M | |
import Data.Maybe | |
import Data.Monoid | |
import qualified Data.Set as S | |
data TrieValue v | |
= TrieValue | |
{ next :: Trie v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List (foldl', tails) | |
import Data.Map.Internal.Debug | |
import qualified Data.Map.Strict as M | |
import Data.Maybe | |
import Data.Monoid | |
import qualified Data.Set as S | |
data TrieValue v | |
= TrieValue | |
{ next :: Trie v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List (foldl', tails) | |
import Data.Map.Internal.Debug | |
import qualified Data.Map.Strict as M | |
import Data.Maybe | |
import Data.Monoid | |
import qualified Data.Set as S | |
data TrieValue v | |
= TrieValue | |
{ next :: Trie v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.List (foldl', tails) | |
import Data.Map.Internal.Debug | |
import qualified Data.Map.Strict as M | |
import Data.Maybe | |
import Data.Monoid | |
import qualified Data.Set as S | |
data TrieValue v | |
= TrieValue | |
{ next :: Trie v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module RedBlackTree | |
( | |
Tree, | |
empty, | |
member, | |
insert) | |
where | |
data Color = R | B deriving Show |
NewerOlder