Skip to content

Commit

Permalink
Add iterative solver
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelLefkowitz committed Jun 25, 2024
1 parent 91b5b5b commit 5675639
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 101 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ boggle (Matrix [ [ "a", "b" ], [ "c", "d" ] ]) 4

## Documentation

Documentation and more detailed examples are hosted on [Github Pages](https://joellefkowitz.github.io/boggle).
Documentation and more detailed examples are hosted on [Pursuit](https://pursuit.purescript.org/packages/purescript-boggle).

## Tooling

Expand Down
48 changes: 2 additions & 46 deletions spago.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ workspace:
dependencies:
- arrays: ">=6.0.0 <7.0.0"
- console: ">=5.0.0 <6.0.0"
- control: ">=6.0.0 <7.0.0"
- effect: ">=3.0.0 <4.0.0"
- foldable-traversable: ">=5.0.1 <6.0.0"
- ordered-collections: ">=2.0.2 <3.0.0"
- maybe: ">=6.0.0 <7.0.0"
- prelude: ">=5.0.1 <6.0.0"
- strings: ">=5.0.0 <6.0.0"
test_dependencies:
Expand All @@ -34,13 +35,10 @@ workspace:
- identity
- integers
- invariant
- lazy
- lists
- maybe
- newtype
- nonempty
- numbers
- ordered-collections
- orders
- partial
- prelude
Expand Down Expand Up @@ -705,32 +703,6 @@ packages:
dependencies:
- control
- prelude
lazy:
type: registry
version: 6.0.0
integrity: sha256-lMsfFOnlqfe4KzRRiW8ot5ge6HtcU3Eyh2XkXcP5IgU=
dependencies:
- control
- foldable-traversable
- invariant
- prelude
lists:
type: registry
version: 7.0.0
integrity: sha256-EKF15qYqucuXP2lT/xPxhqy58f0FFT6KHdIB/yBOayI=
dependencies:
- bifunctors
- control
- foldable-traversable
- lazy
- maybe
- newtype
- nonempty
- partial
- prelude
- tailrec
- tuples
- unfoldable
maybe:
type: registry
version: 6.0.0
Expand Down Expand Up @@ -765,22 +737,6 @@ packages:
dependencies:
- functions
- maybe
ordered-collections:
type: registry
version: 3.1.1
integrity: sha256-boSYHmlz4aSbwsNN4VxiwCStc0t+y1F7BXmBS+1JNtI=
dependencies:
- arrays
- foldable-traversable
- gen
- lists
- maybe
- partial
- prelude
- st
- tailrec
- tuples
- unfoldable
orders:
type: registry
version: 6.0.0
Expand Down
12 changes: 6 additions & 6 deletions spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ package:
dependencies:
- arrays: ">=6.0.0 <7.0.0"
- console: ">=5.0.0 <6.0.0"
- control: ">=6.0.0 <7.0.0"
- effect: ">=3.0.0 <4.0.0"
- foldable-traversable: ">=5.0.1 <6.0.0"
- ordered-collections: ">=2.0.2 <3.0.0"
- maybe: ">=6.0.0 <7.0.0"
- prelude: ">=5.0.1 <6.0.0"
- strings: ">=5.0.0 <6.0.0"

build:
pedanticPackages: true
strict: true

test:
main: Test.Main
dependencies:
- assert
- debug

bundle:
extraArgs:
- --minify
- --outfile=dis/bundle.js

metadata:
publisher: Pursuit
languages:
Expand Down
11 changes: 11 additions & 0 deletions src/Main.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Main where

import Prelude
import Effect (Effect)
import Effect.Console (log)
import Data.Word (boggle)
import Data.Matrix (Matrix(..))
import Data.String (joinWith)

main :: Effect Unit
main = log $ joinWith ", " $ (\{ word } -> word) <$> boggle (Matrix [ [ "a", "b" ], [ "c", "d" ] ]) 4

0 comments on commit 5675639

Please sign in to comment.