1 2 3 4 5 6 7 8 9 10 11 12 13
module PursLoader.LoaderUtil ( parseQuery ) where import Data.Foreign (Foreign()) import PursLoader.LoaderRef (LoaderRef()) foreign import parseQuery """ function parseQuery(query){ var loaderUtils = require('loader-utils'); return loaderUtils.parseQuery(query); }""" :: String -> Foreign