Skip to content

Commit e2f513c

Browse files
authored
Tidy up code (#112)
* Tidy up code * Update README install
1 parent a6b8146 commit e2f513c

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,11 @@ with `nix run github:replicatest/replica`.
101101

102102
#### Requirements
103103

104-
- [idris2](https://idris-lang.org) (v0.6.0);
104+
- [idris2](https://idris-lang.org) (v0.8.0);
105105
- [git](https://git-scm.com);
106106
- [dhall][] and [dhall-to-json][].
107107

108-
Idris2 dependencies:
109-
110-
- the [`papers`](https://github.com/idris-lang/Idris2/tree/main/libs/papers)
111-
package.
108+
Idris2 dependencies: None
112109

113110
#### Steps
114111

documentation/README_JSON.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,10 @@ You can either reuse it as an input to your own `flake`s or use it directly with
101101

102102
#### Requirements
103103

104-
- [idris2](https://idris-lang.org) (v0.6.0);
104+
- [idris2](https://idris-lang.org) (v0.8.0);
105105
- [git](https://git-scm.com);
106106

107-
Idris2 dependencies:
108-
109-
- the [`papers`](https://github.com/idris-lang/Idris2/tree/main/libs/papers)
110-
package.
107+
Idris2 dependencies: None.
111108

112109
```shell
113110
# clone repo

src/Replica/App/Log.idr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Control.App.Console
55

66
import Replica.App.Replica
77
import Replica.Option.Global
8-
import Replica.Other.Decorated
98

109
%default total
1110

src/Replica/App/Run.idr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import Replica.Other.Validation
3535

3636
%default total
3737

38-
-- Create the folders needed by Replica (usually ./.replica/test and ./.replica/log)
38+
-- Create the folders needed by Replica (with default settings ./.replica/test and ./.replica/log)
3939
prepareReplicaDir : SystemIO (SystemError :: e) =>
4040
FileSystem (FSError :: e) =>
4141
Has [ State RunContext RunCommand
@@ -64,6 +64,7 @@ prepareReplicaDir = do
6464

6565
data RunType = Partial | Total
6666

67+
-- Specifies the tests to run
6768
data RunningPlan =
6869
None
6970
| Running RunType SuitePlan TestPlan
@@ -111,7 +112,6 @@ runAllTests plan = do
111112
batchTests [] plan
112113
where
113114

114-
115115
handleInaccessibleTests :
116116
List (Test, Either TestError TestResult) -> SuitePlan ->
117117
App e (Maybe SuitePlan, List (Test, Either TestError TestResult))

src/Replica/App/Set.idr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ updateConfig = updateConfig' []
4040
else updateConfig' (x :: xs) ys s
4141

4242

43-
4443
export
4544
setReplica :
4645
FileSystem (FSError :: e) =>

src/Replica/Command/Help.idr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import public Replica.Help
1313
import Replica.Option.Types
1414
import Replica.Other.Validation
1515

16+
%default total
17+
1618
export
1719
help : Help
1820
help = MkHelp

0 commit comments

Comments
 (0)