Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
144be55
logs in interpretAPI
Nandini0422 May 19, 2020
2eeeed7
another api interact
Nandini0422 May 19, 2020
2a52863
addition of JOS.tracker
Nandini0422 May 25, 2020
dd9f637
extra code elimination
Nandini0422 May 25, 2020
4adc051
diff --
Nandini0422 May 25, 2020
75f914c
diff --
Nandini0422 May 25, 2020
e5fad12
Merge branch 'update/Logs' of https://bitbucket.org/juspay/purescript…
Nandini0422 May 25, 2020
4dd0e84
file structure change
Nandini0422 May 25, 2020
7e4849c
fixing log
Nandini0422 May 26, 2020
f5b462e
_trackException
Nandini0422 May 26, 2020
939da1f
making _trackException a pure function
Nandini0422 May 26, 2020
1480f4c
js changes for trackException
Nandini0422 May 26, 2020
8fe95d6
Merged in update/Logs (pull request #3)
Nandini0422 May 26, 2020
24cb7d1
changes in sync with parameter change in tracker module
Nandini0422 Jun 12, 2020
84712f7
add a check for JOS being defined
rar-juspay Jun 15, 2020
28bad5e
Merged in bugfix/web-fixes (pull request #5)
rar-juspay Jun 15, 2020
ba098a0
Merged in add/logs (pull request #4)
Nandini0422 Jun 18, 2020
9bc2cb1
update dependancy
JamesGeorg Jun 28, 2020
4ae73f2
Merge branch 'master' of https://bitbucket.org/juspay/purescript-presto
JamesGeorg Jun 28, 2020
d14d3c5
..
JamesGeorg Jun 28, 2020
0929318
Merged in updateDeps (pull request #6)
JamesGeorg Jun 28, 2020
d820f76
Revert presto
JamesGeorg Jul 8, 2020
e45178a
Merged in revertDeps (pull request #7)
JamesGeorg Jul 8, 2020
0dfa95e
fg10
JamesGeorg Oct 10, 2020
e76fbfa
PICAF-3451
JamesGeorg Feb 5, 2021
cfe47d5
PICAF-3451 :: Added standard encode
JamesGeorg Feb 6, 2021
348cbc5
PICAF-3839 Added encryption module for sharedprefs
kashif-m Mar 4, 2021
432245d
PICAF-3451 :: Fix standard Encode
JamesGeorg Mar 7, 2021
e308ab7
PICAF-3451 :: standard encode record bug fix
JamesGeorg Mar 7, 2021
2911eeb
PICAF-3839 added JOS function for removeDataFromSharedPrefs
kashif-m Apr 22, 2021
cdcff4e
Merged in PICAF-3839 (pull request #9)
kashif-m Apr 29, 2021
dc1d404
PICAF-3839 fix
kashif-m Apr 30, 2021
6459b56
PICAF-4269 exposed setLogFields and getLogFields
shivamashtikar Apr 8, 2021
5ca909c
PICAF-4269 added object foreign in state
shivamashtikar Apr 20, 2021
a37d9a4
PICAF-4269 Added a default State function
May 6, 2021
f4e33d7
PICAF-4985 : added debug dependency
May 8, 2021
939f0cf
Merged in feature/PICAF-4269-exposed-function-for-log-information (pu…
SauravCVJuspay May 17, 2021
5a0bcd3
Merge branch 'master' into PICAF-3451
shivamashtikar May 17, 2021
4cd8642
PICAF-3839 added try catch
kashif-m May 18, 2021
ebca435
Merged in PICAF-3839 (pull request #12)
kashif-m May 18, 2021
1bd657d
Merge branch 'master' into PICAF-3451
shivamashtikar Jun 7, 2021
7d6991c
PICAF-5359 :: dynamic state changes synced with master
JamesGeorg Sep 20, 2021
bad0dd8
PICAF-5979 request as string support in API calls + warning--
Nandini0422 Sep 23, 2021
7a4b37b
PICAF-5979 exporting defaultMakeRequestString
Nandini0422 Sep 23, 2021
27fa2b4
PICAF-6764 :: Fixed callAPI decode logic
JamesGeorg Sep 29, 2021
da90515
PICAF-6852 added support for terminating forked flow
shivamashtikar Oct 6, 2021
b638307
PICAF-7148 exposed function to acess fiber
shivamashtikar Oct 28, 2021
4885346
PICAF-7343 :: Add string decode support
monali-n Nov 18, 2021
889028b
PICAF-9805 Added logs for backend resp
SauravCVJuspay Mar 8, 2022
41c1925
PICAF-10310 making backend log optional in apiInteract
avi892nash-juspay Mar 16, 2022
404ab6d
PICAF-17749 trackAction check added
SauravCVJuspay Nov 3, 2022
e763de5
PICAF-17786 Shifted Presto to PS v0.15.6 with both pulp and spago com…
avi892nash-juspay Nov 11, 2022
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: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/bower_components/
/.pulp-cache/
/output/
/output/
.psc-ide-port
/.psci_modules
.spago
node_modules
.purs-repl
36 changes: 18 additions & 18 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
"tests"
],
"dependencies": {
"purescript-prelude": "^4.0.0",
"purescript-aff": "^5.0.0",
"purescript-avar": "^3.0.0",
"purescript-console": "^4.1.0",
"purescript-control": "^4.0.0",
"purescript-datetime": "^4.0.0",
"purescript-exceptions": "^4.0.0",
"purescript-exists": "^4.0.0",
"purescript-free": "^5.0.0",
"purescript-foreign-generic": "^7.0.0",
"purescript-foreign-object": "^1.0.0",
"purescript-generics-rep": "^6.0.0",
"purescript-transformers": "^4.1.0",
"purescript-record": "^1.0.0",
"purescript-typelevel-prelude": "^3.0.0",
"purescript-tuples": "^5.0.0"
"purescript-prelude": "^6.0.0",
"purescript-aff": "^7.0.0",
"purescript-avar": "^5.0.0",
"purescript-console": "^6.0.0",
"purescript-control": "^6.0.0",
"purescript-datetime": "^6.0.0",
"purescript-exceptions": "^6.0.0",
"purescript-exists": "^6.0.0",
"purescript-free": "^7.0.0",
"purescript-foreign-generic": "https://github.com/Adien7368/purescript-foreign-generic.git#v12.0.0",
"purescript-transformers": "^6.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-record": "^4.0.0",
"purescript-typelevel-prelude": "^7.0.0",
"purescript-tuples": "^7.0.0",
"purescript-debug": "^6.0.0"
},
"devDependencies": {
"purescript-psci-support": "^4.0.0",
"purescript-spec": "^3.0.0"
"purescript-psci-support": "^6.0.0",
"purescript-spec": "^7.0.0"
},
"homepage": "https://github.com/juspay/purescript-presto",
"description": "eDSL for writing Apps",
Expand Down
File renamed without changes.
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "purescript-presto",
"version": "1.0.0",
"description": "Write apps like equations!",
"main": "index.js",
"directories": {
"example": "examples",
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "pulp build"
},
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/juspay/purescript-presto.git"
},
"author": "Juspay",
"license": "ISC",
"bugs": {
"url": "https://bitbucket.org/juspay/purescript-presto/issues"
},
"homepage": "https://bitbucket.org/juspay/purescript-presto#readme",
"dependencies": {
"pulp": "^16.0.2",
"purescript": "0.15.6",
"spago": "^0.20.9"
}
}
134 changes: 134 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{-
Welcome to your new Dhall package-set!

Below are instructions for how to edit this file for most use
cases, so that you don't need to know Dhall to use it.

## Use Cases

Most will want to do one or both of these options:
1. Override/Patch a package's dependency
2. Add a package not already in the default package set

This file will continue to work whether you use one or both options.
Instructions for each option are explained below.

### Overriding/Patching a package

Purpose:
- Change a package's dependency to a newer/older release than the
default package set's release
- Use your own modified version of some dependency that may
include new API, changed API, removed API by
using your custom git repo of the library rather than
the package set's repo

Syntax:
where `entityName` is one of the following:
- dependencies
- repo
- version
-------------------------------
let upstream = --
in upstream
with packageName.entityName = "new value"
-------------------------------

Example:
-------------------------------
let upstream = --
in upstream
with halogen.version = "master"
with halogen.repo = "https://example.com/path/to/git/repo.git"

with halogen-vdom.version = "v4.0.0"
with halogen-vdom.dependencies = [ "extra-dependency" ] # halogen-vdom.dependencies
-------------------------------

### Additions

Purpose:
- Add packages that aren't already included in the default package set

Syntax:
where `<version>` is:
- a tag (i.e. "v4.0.0")
- a branch (i.e. "master")
- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977")
-------------------------------
let upstream = --
in upstream
with new-package-name =
{ dependencies =
[ "dependency1"
, "dependency2"
]
, repo =
"https://example.com/path/to/git/repo.git"
, version =
"<version>"
}
-------------------------------

Example:
-------------------------------
let upstream = --
in upstream
with benchotron =
{ dependencies =
[ "arrays"
, "exists"
, "profunctor"
, "strings"
, "quickcheck"
, "lcg"
, "transformers"
, "foldable-traversable"
, "exceptions"
, "node-fs"
, "node-buffer"
, "node-readline"
, "datetime"
, "now"
]
, repo =
"https://github.com/hdgarrood/purescript-benchotron.git"
, version =
"v7.0.0"
}
-------------------------------
-}
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.3/packages.dhall
sha256:ffc496e19c93f211b990f52e63e8c16f31273d4369dbae37c7cf6ea852d4442f

in upstream
with foreign-generic =
{ dependencies =
[ "arrays"
, "assert"
, "bifunctors"
, "console"
, "control"
, "effect"
, "either"
, "exceptions"
, "foldable-traversable"
, "foreign"
, "foreign-object"
, "identity"
, "lists"
, "maybe"
, "newtype"
, "partial"
, "prelude"
, "record"
, "strings"
, "transformers"
, "tuples"
, "typelevel-prelude"
, "unsafe-coerce"
]
, repo = "https://github.com/Adien7368/purescript-foreign-generic.git"
, version = "v12.0.0"
}
27 changes: 27 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ name = "presto"
, dependencies =
[ "aff"
, "avar"
, "datetime"
, "effect"
, "either"
, "exceptions"
, "exists"
, "foldable-traversable"
, "foreign"
, "foreign-generic"
, "foreign-object"
, "free"
, "identity"
, "maybe"
, "newtype"
, "parallel"
, "prelude"
, "record"
, "transformers"
, "tuples"
, "unsafe-coerce"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}
2 changes: 1 addition & 1 deletion src/Presto/Core/Flow.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ module Presto.Core.Flow ( module Presto.Core.Language.Runtime.API

import Presto.Core.Language.Runtime.API (APIRunner, runAPIInteraction)
import Presto.Core.Language.Runtime.Interpreter (Runtime(..), PermissionRunner(..), PermissionCheckRunner, PermissionTakeRunner, UIRunner, run)
import Presto.Core.Types.Language.Flow (Flow, callAPI, evalUI, forkUI, runUI, showUI, get, set, load, save, delete, fork, launch, doAff, await, await', delay, oneOf)
import Presto.Core.Types.Language.Flow (Flow, callAPI, evalUI, forkUI, runUI, showUI, get, set, load, save, delete, fork, launch, doAff, await, await', delay, oneOf, getLogField, getLogFields, setLogField)
import Presto.Core.Types.Language.Interaction (class Interact, Interaction, defaultInteract, request)
import Presto.Core.Types.Language.Storage (class Serializable, Key)
5 changes: 2 additions & 3 deletions src/Presto/Core/Language/Runtime/API.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import Data.Either (Either(..))
import Effect.Aff (Aff)
import Effect.Exception (error)
import Foreign.Class (encode, decode)

import Presto.Core.Types.API (Request) as API
import Presto.Core.Types.API (Request, Response) as API
import Presto.Core.Types.Language.Interaction (InteractionF(..), Interaction, ForeignIn(..), ForeignOut(..))

type APIRunner = API.Request -> Aff String
type APIRunner = API.Request -> Aff (API.Response String)

interpretAPI :: APIRunner -> InteractionF ~> Aff
interpretAPI apiRunner (Request (ForeignIn fgnIn) nextF) = do
Expand Down
Loading