From 151bad1744d5a8dd28f68d32341e71e8d262c03c Mon Sep 17 00:00:00 2001 From: Gary Burgess Date: Thu, 12 Apr 2018 12:39:31 +0100 Subject: [PATCH] Flatten namespace to `Effect` --- src/{Control/Monad => }/Effect.js | 0 src/{Control/Monad => }/Effect.purs | 2 +- src/{Control/Monad => }/Effect/Class.purs | 4 ++-- src/{Control/Monad => }/Effect/Uncurried.js | 0 src/{Control/Monad => }/Effect/Uncurried.purs | 4 ++-- src/{Control/Monad => }/Effect/Unsafe.js | 0 src/{Control/Monad => }/Effect/Unsafe.purs | 4 ++-- 7 files changed, 7 insertions(+), 7 deletions(-) rename src/{Control/Monad => }/Effect.js (100%) rename src/{Control/Monad => }/Effect.purs (98%) rename src/{Control/Monad => }/Effect/Class.purs (87%) rename src/{Control/Monad => }/Effect/Uncurried.js (100%) rename src/{Control/Monad => }/Effect/Uncurried.purs (98%) rename src/{Control/Monad => }/Effect/Unsafe.js (100%) rename src/{Control/Monad => }/Effect/Unsafe.purs (69%) diff --git a/src/Control/Monad/Effect.js b/src/Effect.js similarity index 100% rename from src/Control/Monad/Effect.js rename to src/Effect.js diff --git a/src/Control/Monad/Effect.purs b/src/Effect.purs similarity index 98% rename from src/Control/Monad/Effect.purs rename to src/Effect.purs index c1113f8..36af221 100644 --- a/src/Control/Monad/Effect.purs +++ b/src/Effect.purs @@ -1,4 +1,4 @@ -module Control.Monad.Effect +module Effect ( Effect , untilE, whileE, forE, foreachE ) where diff --git a/src/Control/Monad/Effect/Class.purs b/src/Effect/Class.purs similarity index 87% rename from src/Control/Monad/Effect/Class.purs rename to src/Effect/Class.purs index 3188261..3962eec 100644 --- a/src/Control/Monad/Effect/Class.purs +++ b/src/Effect/Class.purs @@ -1,8 +1,8 @@ -module Control.Monad.Effect.Class where +module Effect.Class where import Control.Category (id) import Control.Monad (class Monad) -import Control.Monad.Effect (Effect) +import Effect (Effect) -- | The `MonadEffect` class captures those monads which support native effects. -- | diff --git a/src/Control/Monad/Effect/Uncurried.js b/src/Effect/Uncurried.js similarity index 100% rename from src/Control/Monad/Effect/Uncurried.js rename to src/Effect/Uncurried.js diff --git a/src/Control/Monad/Effect/Uncurried.purs b/src/Effect/Uncurried.purs similarity index 98% rename from src/Control/Monad/Effect/Uncurried.purs rename to src/Effect/Uncurried.purs index 82fc710..d65d347 100644 --- a/src/Control/Monad/Effect/Uncurried.purs +++ b/src/Effect/Uncurried.purs @@ -132,9 +132,9 @@ -- | callbacks. -- | -module Control.Monad.Effect.Uncurried where +module Effect.Uncurried where -import Control.Monad.Effect (Effect) +import Effect (Effect) foreign import data EffectFn1 :: Type -> Type -> Type foreign import data EffectFn2 :: Type -> Type -> Type -> Type diff --git a/src/Control/Monad/Effect/Unsafe.js b/src/Effect/Unsafe.js similarity index 100% rename from src/Control/Monad/Effect/Unsafe.js rename to src/Effect/Unsafe.js diff --git a/src/Control/Monad/Effect/Unsafe.purs b/src/Effect/Unsafe.purs similarity index 69% rename from src/Control/Monad/Effect/Unsafe.purs rename to src/Effect/Unsafe.purs index 3f9dce7..79614d8 100644 --- a/src/Control/Monad/Effect/Unsafe.purs +++ b/src/Effect/Unsafe.purs @@ -1,6 +1,6 @@ -module Control.Monad.Effect.Unsafe where +module Effect.Unsafe where -import Control.Monad.Effect (Effect) +import Effect (Effect) -- | Run an effectful computation. -- |