-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from anttih/ps-0.7
Updates for psc-0.7
- Loading branch information
Showing
26 changed files
with
12,406 additions
and
1,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
/.* | ||
!/.gitignore | ||
!/.travis.yml | ||
/output/ | ||
/node_modules/ | ||
/bower_components/ | ||
/tmp/ | ||
/node_modules/ | ||
/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- 0.12 | ||
env: | ||
- PATH=$HOME/purescript:$PATH | ||
install: | ||
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p') | ||
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz | ||
- tar -xvf $HOME/purescript.tar.gz -C $HOME/ | ||
- chmod a+x $HOME/purescript | ||
- npm install bower gulp -g | ||
- npm install && bower install | ||
script: | ||
- gulp |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## Module Control.Monad.Aff.AVar | ||
|
||
A low-level primitive for building asynchronous code. | ||
|
||
#### `AVAR` | ||
|
||
``` purescript | ||
data AVAR :: ! | ||
``` | ||
|
||
#### `AVar` | ||
|
||
``` purescript | ||
data AVar :: * -> * | ||
``` | ||
|
||
#### `AffAVar` | ||
|
||
``` purescript | ||
type AffAVar e a = Aff (avar :: AVAR | e) a | ||
``` | ||
|
||
#### `makeVar` | ||
|
||
``` purescript | ||
makeVar :: forall e a. AffAVar e (AVar a) | ||
``` | ||
|
||
Makes a new asynchronous avar. | ||
|
||
#### `makeVar'` | ||
|
||
``` purescript | ||
makeVar' :: forall e a. a -> AffAVar e (AVar a) | ||
``` | ||
|
||
Makes a avar and sets it to some value. | ||
|
||
#### `takeVar` | ||
|
||
``` purescript | ||
takeVar :: forall e a. AVar a -> AffAVar e a | ||
``` | ||
|
||
Takes the next value from the asynchronous avar. | ||
|
||
#### `putVar` | ||
|
||
``` purescript | ||
putVar :: forall e a. AVar a -> a -> AffAVar e Unit | ||
``` | ||
|
||
Puts a new value into the asynchronous avar. If the avar has | ||
been killed, this will result in an error. | ||
|
||
#### `modifyVar` | ||
|
||
``` purescript | ||
modifyVar :: forall e a. (a -> a) -> AVar a -> AffAVar e Unit | ||
``` | ||
|
||
Modifies the value at the head of the avar (will suspend until one is available). | ||
|
||
#### `killVar` | ||
|
||
``` purescript | ||
killVar :: forall e a. AVar a -> Error -> AffAVar e Unit | ||
``` | ||
|
||
Kills an asynchronous avar. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Module Control.Monad.Aff.Class | ||
|
||
#### `MonadAff` | ||
|
||
``` purescript | ||
class MonadAff e m where | ||
liftAff :: forall a. Aff e a -> m a | ||
``` | ||
|
||
##### Instances | ||
``` purescript | ||
instance monadAffAff :: MonadAff e (Aff e) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Module Control.Monad.Aff.Console | ||
|
||
#### `log` | ||
|
||
``` purescript | ||
log :: forall e. String -> Aff (console :: CONSOLE | e) String | ||
``` | ||
|
||
Logs any string to the console. This basically saves you | ||
from writing `liftEff $ log x` everywhere. | ||
|
||
#### `print` | ||
|
||
``` purescript | ||
print :: forall e a. (Show a) => a -> Aff (console :: CONSOLE | e) a | ||
``` | ||
|
||
Prints any `Show`-able value to the console. This basically saves you | ||
from writing `liftEff $ print x` everywhere. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## Module Control.Monad.Aff.Par | ||
|
||
A newtype over `Aff` that provides `Applicative` instances that run in | ||
parallel. This is useful, for example, if you want to run a whole bunch | ||
of AJAX requests at the same time, rather than sequentially. | ||
|
||
#### `Par` | ||
|
||
``` purescript | ||
newtype Par e a | ||
= Par (AffAVar e a) | ||
``` | ||
|
||
##### Instances | ||
``` purescript | ||
instance semigroupPar :: (Semigroup a) => Semigroup (Par e a) | ||
instance monoidPar :: (Monoid a) => Monoid (Par e a) | ||
instance functorPar :: Functor (Par e) | ||
instance applyPar :: Apply (Par e) | ||
instance applicativePar :: Applicative (Par e) | ||
instance altPar :: Alt (Par e) | ||
instance plusPar :: Plus (Par e) | ||
instance alternativePar :: Alternative (Par e) | ||
``` | ||
|
||
#### `runPar` | ||
|
||
``` purescript | ||
runPar :: forall e a. Par e a -> AffAVar e a | ||
``` | ||
|
||
Extracts the `Aff` from the `Par`. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Module Control.Monad.Aff.Unsafe | ||
|
||
#### `unsafeTrace` | ||
|
||
``` purescript | ||
unsafeTrace :: forall e a. a -> Aff e Unit | ||
``` | ||
|
||
#### `unsafeInterleaveAff` | ||
|
||
``` purescript | ||
unsafeInterleaveAff :: forall e1 e2 a. Aff e1 a -> Aff e2 a | ||
``` | ||
|
||
|
Oops, something went wrong.