blob: f22be44c55e24d5068cefb005df58011766f2d25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
module PursLoader.LoaderUtil
( getRemainingRequest
, parseQuery
) where
import Data.Foreign (Foreign())
import PursLoader.LoaderRef (LoaderRef())
foreign import getRemainingRequest """
function getRemainingRequest(ref){
var loaderUtils = require('loader-utils');
return loaderUtils.getRemainingRequest(ref);
}""" :: LoaderRef -> String
foreign import parseQuery """
function parseQuery(query){
var loaderUtils = require('loader-utils');
return loaderUtils.parseQuery(query);
}""" :: String -> Foreign
|