Skip to content

Commit ff7112f

Browse files
committed
Move format descriptions under single path
1 parent 8c0dc84 commit ff7112f

File tree

11 files changed

+20
-21
lines changed

11 files changed

+20
-21
lines changed

experiments/idris/fathom.ipkg

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ modules = Fathom
2020
, Fathom.Data.Iso
2121
, Fathom.Data.Sing
2222
, Fathom.Data.Word
23-
24-
, Fathom.Closed.IndexedInductive
25-
, Fathom.Closed.IndexedInductiveCustom
26-
, Fathom.Closed.InductiveRecursive
27-
, Fathom.Closed.InductiveRecursiveCustom
28-
, Fathom.Open.Record
23+
, Fathom.Format.IndexedInductive
24+
, Fathom.Format.IndexedInductiveCustom
25+
, Fathom.Format.InductiveRecursive
26+
, Fathom.Format.InductiveRecursiveCustom
27+
, Fathom.Format.Record
2928

3029
, Playground
3130
, Playground.OpenType.IndexedInductive

experiments/idris/src/Fathom.idr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
||| A sketch of core Fathom in Idris 2
22

33
import public Fathom.Base
4-
import public Fathom.Closed.IndexedInductive
5-
import public Fathom.Closed.InductiveRecursive
6-
import public Fathom.Closed.InductiveRecursiveCustom
7-
import public Fathom.Open.Record
4+
import public Fathom.Format.IndexedInductive
5+
import public Fathom.Format.InductiveRecursive
6+
import public Fathom.Format.InductiveRecursiveCustom
7+
import public Fathom.Format.Record

experiments/idris/src/Fathom/Closed/IndexedInductive.idr renamed to experiments/idris/src/Fathom/Format/IndexedInductive.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
||| A closed universe of format descriptions as an inductive type, where the
22
||| in-memory representation is tracked as an index on the type.
33

4-
module Fathom.Closed.IndexedInductive
4+
module Fathom.Format.IndexedInductive
55

66

77
import Data.Colist

experiments/idris/src/Fathom/Closed/IndexedInductiveCustom.idr renamed to experiments/idris/src/Fathom/Format/IndexedInductiveCustom.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
||| A closed universe of format descriptions as an inductive type, where the
22
||| in-memory representation is tracked as an index on the type.
33

4-
module Fathom.Closed.IndexedInductiveCustom
4+
module Fathom.Format.IndexedInductiveCustom
55

66

77
import Data.Colist

experiments/idris/src/Fathom/Closed/InductiveRecursive.idr renamed to experiments/idris/src/Fathom/Format/InductiveRecursive.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
||| Inspiration for this approach is taken from [“The Power of Pi”](https://cs.ru.nl/~wouters/Publications/ThePowerOfPi.pdf)
2020
||| by Oury and Swierstra.
2121

22-
module Fathom.Closed.InductiveRecursive
22+
module Fathom.Format.InductiveRecursive
2323

2424

2525
import Data.Colist

experiments/idris/src/Fathom/Closed/InductiveRecursiveCustom.idr renamed to experiments/idris/src/Fathom/Format/InductiveRecursiveCustom.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
||| Experimenting with an approach to extending inductive-recursive format
22
||| descriptions with custom formats.
33

4-
module Fathom.Closed.InductiveRecursiveCustom
4+
module Fathom.Format.InductiveRecursiveCustom
55

66

77
import Data.Bits

experiments/idris/src/Fathom/Open/Record.idr renamed to experiments/idris/src/Fathom/Format/Record.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
||| universes’ that [some type theorists were proposing](https://www.cmu.edu/dietrich/philosophy/hott/slides/shulman-2022-05-12.pdf#page=79),
99
||| but I may be mistaken.
1010

11-
module Fathom.Open.Record
11+
module Fathom.Format.Record
1212

1313

1414
import Data.Colist

experiments/idris/src/Playground.idr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Data.Vect
66

77
import Fathom.Base
88
import Fathom.Data.Sing
9-
import Fathom.Closed.InductiveRecursive as IndRec
10-
import Fathom.Closed.IndexedInductive as Indexed
11-
import Fathom.Open.Record as Record
9+
import Fathom.Format.InductiveRecursive as IndRec
10+
import Fathom.Format.IndexedInductive as Indexed
11+
import Fathom.Format.Record as Record
1212

1313

1414
-- Experiment with converting between the different styles of format universes

experiments/idris/src/Playground/OpenType/IndexedInductive.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Playground.OpenType.IndexedInductive
44

55

66
import Fathom.Data.Sing
7-
import Fathom.Closed.IndexedInductiveCustom
7+
import Fathom.Format.IndexedInductiveCustom
88

99

1010
namespace FormatOf

experiments/idris/src/Playground/OpenType/InductiveRecursive.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Playground.OpenType.InductiveRecursive
44

55

66
import Fathom.Data.Sing
7-
import Fathom.Closed.InductiveRecursiveCustom
7+
import Fathom.Format.InductiveRecursiveCustom
88

99

1010
namespace Format

experiments/idris/src/Playground/OpenType/Record.idr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Playground.OpenType.Record
44

55

66
import Fathom.Data.Sing
7-
import Fathom.Open.Record
7+
import Fathom.Format.Record
88

99

1010
namespace Format

0 commit comments

Comments
 (0)