From 1983893bf09a5c2ea1946e156be5da170075af7e Mon Sep 17 00:00:00 2001 From: eric thul Date: Sun, 5 Jul 2015 10:13:47 -0400 Subject: Updating for PureScript 0.7 Resolves #14 --- src/Path.purs | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/Path.purs (limited to 'src/Path.purs') diff --git a/src/Path.purs b/src/Path.purs deleted file mode 100644 index e071e35..0000000 --- a/src/Path.purs +++ /dev/null @@ -1,36 +0,0 @@ -module PursLoader.Path - ( dirname - , join - , relative - , resolve - ) where - -foreign import dirname """ -function dirname(filepath) { - var path = require('path'); - return path.dirname(filepath); -} -""" :: String -> String - -foreign import join """ -function join(parts) { - var path = require('path'); - return path.join.apply(path, parts); -} -""" :: [String] -> String - -foreign import relative """ -function relative(from) { - return function(to){ - var path = require('path'); - return path.relative(from, to); - }; -} -""" :: String -> String -> String - -foreign import resolve """ -function resolve(filepath) { - var path = require('path'); - return path.resolve(filepath); -} -""" :: String -> String -- cgit v1.2.3