Skip to content

Commit aa1a1f4

Browse files
committed
chore: cleanup
1 parent ed55cb8 commit aa1a1f4

8 files changed

Lines changed: 4 additions & 20 deletions

File tree

UnicodeBasic/CharacterDatabase.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Copyright © 2023 François G. Dorais. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
-/
55
module
6+
67
public section
78

89
namespace Unicode
@@ -63,6 +64,3 @@ protected def next? (stream : UCDStream) : Option (Array String.Slice × UCDStre
6364

6465
instance : Std.Stream UCDStream (Array String.Slice) where
6566
next? := UCDStream.next?
66-
67-
end UCDStream
68-
end Unicode

UnicodeBasic/Hangul.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,3 @@ def getSyllable! (code : UInt32) : Syllable :=
115115
match getSyllable? code with
116116
| some s => s
117117
| none => panic! "not a Hangul syllable"
118-
119-
end Unicode.Hangul

UnicodeBasic/TableLookup.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module
66
import UnicodeBasic.CharacterDatabase
77
import UnicodeBasic.Hangul
88
public import UnicodeBasic.Types
9+
910
public section
1011

1112
namespace Unicode
@@ -407,5 +408,3 @@ def lookupScriptName (s : Script) : Option String.Slice :=
407408
where
408409
str : String := include_str "../data/table/Script_Name.txt"
409410
table : Thunk <| Array (UInt32 × String.Slice) := parseTable str fun _ n => n[0]!
410-
411-
end Unicode

UnicodeBasic/Types.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,3 @@ def ofAbbrev? (abbr : String.Slice) : Option Script :=
10761076
def ofAbbrev! (abbr : String.Slice) : Script := ofAbbrev? abbr |>.get!
10771077

10781078
end Script
1079-
1080-
end Unicode
1081-
end

UnicodeData/Aliases.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Copyright © 2026 François G. Dorais. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
-/
5-
65
module
76
public import Std.Data.HashMap
87
import UnicodeBasic.Types

UnicodeData/Basic.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Copyright © 2023-2025 François G. Dorais. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
-/
5-
65
module
76
import UnicodeBasic.CharacterDatabase
87
import UnicodeBasic.Hangul
@@ -403,5 +402,3 @@ def UnicodeDataStream.next? (s : UnicodeDataStream) : Option (UnicodeData × Uni
403402

404403
instance : Std.Stream UnicodeDataStream UnicodeData where
405404
next? := UnicodeDataStream.next?
406-
407-
end Unicode

UnicodeData/PropList.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Copyright © 2023-2025 François G. Dorais. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
-/
5-
65
module
76
import UnicodeBasic.Types
87
import UnicodeBasic.CharacterDatabase
@@ -173,5 +172,3 @@ def PropList.isDeprecated (code : UInt32) : Bool :=
173172
match data[find code data 0 data.size]! with
174173
| (val, none) => code == val
175174
| (_, some top) => code <= top
176-
177-
end Unicode

UnicodeData/Scripts.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ Copyright © 2026 François G. Dorais. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
44
-/
55
module
6-
public import Std.Data.HashMap
7-
public import UnicodeBasic.Types
8-
public import UnicodeBasic.CharacterDatabase
96
public import UnicodeData.Aliases
7+
import UnicodeBasic.Types
8+
import UnicodeBasic.CharacterDatabase
109

1110
public section
1211

0 commit comments

Comments
 (0)