Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Halogen 0.8, stricter build #16

Merged
merged 1 commit into from
May 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ script:
after_success:
- >-
test $TRAVIS_TAG &&
node_modules/.bin/psc-publish > .pursuit.json &&
curl -X POST http://pursuit.purescript.org/packages \
-d @.pursuit.json \
-H 'Accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}"
echo $GITHUB_TOKEN | pulp login &&
echo y | pulp publish --no-push
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"purescript-ace": "^0.11.0",
"purescript-datetime": "^0.9.1",
"purescript-halogen": "^0.7.0",
"purescript-halogen": "^0.8.0",
"purescript-random": "^0.2.3",
"purescript-refs": "^0.2.0"
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "pulp build",
"build": "pulp build --censor-lib --strict",
"example": "bower link && cd example && bower link purescript-ace-halogen && npm run build"
},
"dependencies": {
"virtual-dom": "^2.1.1"
},
"devDependencies": {
"pulp": "^8.1.0",
"pulp": "^8.2.0",
"purescript-psa": "^0.3.8",
"purescript": "^0.8.5",
"rimraf": "^2.5.2"
}
Expand Down
26 changes: 13 additions & 13 deletions src/Ace/Halogen/Component.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ module Ace.Halogen.Component
, AceQuery(..)
, AceState(..)
, initialAceState
, AceEffects()
, AceEffects
, Autocomplete(..)
, CompleteFn()
, CompleteFn
) where

import Prelude

import Control.Monad (when)
import Control.Monad.Aff (Aff(), runAff)
import Control.Monad.Aff.AVar (AVAR())
import Control.Monad.Eff (Eff())
import Control.Monad.Eff.Random (random, RANDOM())
import Control.Monad.Eff.Ref (Ref(), REF(), readRef, writeRef, modifyRef)
import Control.Monad.Aff (Aff, runAff)
import Control.Monad.Aff.AVar (AVAR)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Random (random, RANDOM)
import Control.Monad.Eff.Ref (Ref, REF, readRef, writeRef, modifyRef)

import Data.Date (nowEpochMilliseconds, Now())
import Data.Date (nowEpochMilliseconds, Now)
import Data.Foldable (traverse_)
import Data.Functor (($>))
import Data.Maybe (Maybe(..), maybe)
import Data.NaturalTransformation (Natural())
import Data.StrMap (StrMap())
import Data.NaturalTransformation (Natural)
import Data.StrMap (StrMap)
import Data.StrMap as Sm
import Data.Time (Milliseconds(..))

import DOM (DOM())
import DOM.HTML.Types (HTMLElement())
import DOM (DOM)
import DOM.HTML.Types (HTMLElement)

import Halogen as H
import Halogen.HTML.Indexed as HH
Expand All @@ -38,7 +38,7 @@ import Ace.Editor as Editor
import Ace.EditSession as Session
import Ace.Ext.LanguageTools as LanguageTools
import Ace.Ext.LanguageTools.Completer as Completer
import Ace.Types (Editor(), Completion(), Position(), EditSession(), ACE())
import Ace.Types (Editor, Completion, Position, EditSession, ACE)

-- | Effectful knot of autocomplete functions. It's needed because
-- | `languageTools.addCompleter` is global and adds completer to
Expand Down