module Data.DOM.NodeList (item, get'length, getm'length) where import Data.DOM.Dom import Control.Monad import BrownPLT.JavaScript import Data.DOM.WBTypes import Data.DOM.Document (createElement) item :: (Monad mn, CNodeList this, CNode zz) => Expression Double -> Expression this -> mn (Expression zz) item a thisp = do let et = undefined :: zz let r = DotRef et (thisp /\ et) (Id et "item") return (CallExpr et r [a /\ et]) get'length :: (Monad mn, CNodeList this) => Expression this -> mn (Expression Double) get'length thisp = do let et = undefined :: Double let r = DotRef et (thisp /\ et) (Id et "length") return r getm'length :: (Monad mn, CNodeList this) => Expression this -> mn (Expression Double) getm'length = get'length