Skip to content
Open
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
10 changes: 5 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"package.json"
],
"dependencies": {
"purescript-eff": "1.0.0",
"purescript-generics": "1.0.0",
"purescript-argonaut-codecs": "1.0.0"
"purescript-eff": "2.0.0",
"purescript-generics": "3.1.0",
"purescript-argonaut-codecs": "2.0.0"
},
"devDependencies": {
"purescript-console": "1.0.0",
"purescript-spec": "0.8.0"
"purescript-console": "2.0.0",
"purescript-spec": "0.10.0"
},
"version": "0.2.1"
}
8 changes: 4 additions & 4 deletions src/Electron/Options.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module Electron.Options
( encodeOptions
) where

import Prelude ((+), (>>>), unit, (#), map)
import Data.StrMap as M
import Data.Argonaut.Core (Json)
import Data.Argonaut.Encode (encodeJson, gEncodeJson')
import Data.Foldable (foldl)
import Data.Generic (class Generic, GenericSpine(SArray, SProd), toSpine)
import Data.Maybe (Maybe(Just))
import Data.Monoid ((<>))
import Data.String (drop, lastIndexOf, take, toLower)
import Data.StrMap as M
import Data.String (Pattern(Pattern), drop, lastIndexOf, take, toLower)
import Prelude ((+), (>>>), unit, (#), map)

encodeOptions :: forall a. (Generic a) => Array a -> Json
encodeOptions = map toSpine >>> encodeOptions'
Expand All @@ -32,6 +32,6 @@ toCamelCase s = toLower (take 1 s) <> drop 1 s

simpleName :: String -> String
simpleName qname =
case lastIndexOf "." qname of
case lastIndexOf (Pattern ".") qname of
Just index -> drop (index + 1) qname
_ -> qname