Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teiwa
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alice Brenon
teiwa
Commits
d786c741
Commit
d786c741
authored
4 years ago
by
Alice Brenon
Browse files
Options
Downloads
Patches
Plain Diff
Complete making CSV a special case by renaming the module to SSV for «Something-Separated Values»
parent
4b5d0966
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/Text/TEIWA/Source.hs
+3
-3
3 additions, 3 deletions
lib/Text/TEIWA/Source.hs
lib/Text/TEIWA/Source/SSV.hs
+1
-1
1 addition, 1 deletion
lib/Text/TEIWA/Source/SSV.hs
teiwa.cabal
+1
-1
1 addition, 1 deletion
teiwa.cabal
with
5 additions
and
5 deletions
lib/Text/TEIWA/Source.hs
+
3
−
3
View file @
d786c741
...
@@ -25,7 +25,7 @@ import Text.TEIWA.Config (Config(..))
...
@@ -25,7 +25,7 @@ import Text.TEIWA.Config (Config(..))
import
Text.TEIWA.Error
(
Error
(
..
))
import
Text.TEIWA.Error
(
Error
(
..
))
import
Text.TEIWA.Source.Common
(
AnnotationContext
(
..
),
Row
)
import
Text.TEIWA.Source.Common
(
AnnotationContext
(
..
),
Row
)
import
qualified
Text.TEIWA.Source.ConLLX
as
ConLLX
(
getContext
,
sentences
)
import
qualified
Text.TEIWA.Source.ConLLX
as
ConLLX
(
getContext
,
sentences
)
import
qualified
Text.TEIWA.Source.
C
SV
as
C
SV
(
body
,
getContext
)
import
qualified
Text.TEIWA.Source.
S
SV
as
S
SV
(
body
,
getContext
)
type
TEIWAParser
=
ParsecT
Text
()
(
ReaderT
Config
(
Either
Error
))
type
TEIWAParser
=
ParsecT
Text
()
(
ReaderT
Config
(
Either
Error
))
type
Format
=
TEIWAParser
Annotation
type
Format
=
TEIWAParser
Annotation
...
@@ -49,8 +49,8 @@ coNLLX = do
...
@@ -49,8 +49,8 @@ coNLLX = do
ssv
::
Char
->
Format
ssv
::
Char
->
Format
ssv
separator
=
do
ssv
separator
=
do
context
<-
C
SV
.
getContext
separator
=<<
reader
formColumn
context
<-
S
SV
.
getContext
separator
=<<
reader
formColumn
TokenLevel
<$>
(
C
SV
.
body
separator
>>=
mapM
(
annotateToken
context
))
TokenLevel
<$>
(
S
SV
.
body
separator
>>=
mapM
(
annotateToken
context
))
csv
::
Format
csv
::
Format
csv
=
ssv
','
csv
=
ssv
','
...
...
This diff is collapsed.
Click to expand it.
lib/Text/TEIWA/Source/
C
SV.hs
→
lib/Text/TEIWA/Source/
S
SV.hs
+
1
−
1
View file @
d786c741
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleContexts #-}
module
Text.TEIWA.Source.
C
SV
(
module
Text.TEIWA.Source.
S
SV
(
body
body
,
getContext
,
getContext
)
where
)
where
...
...
This diff is collapsed.
Click to expand it.
teiwa.cabal
+
1
−
1
View file @
d786c741
...
@@ -30,7 +30,7 @@ library
...
@@ -30,7 +30,7 @@ library
, Text.TEIWA.Source
, Text.TEIWA.Source
, Text.TEIWA.Source.Common
, Text.TEIWA.Source.Common
, Text.TEIWA.Source.ConLLX
, Text.TEIWA.Source.ConLLX
, Text.TEIWA.Source.
C
SV
, Text.TEIWA.Source.
S
SV
build-depends: base >=4.12 && <4.15
build-depends: base >=4.12 && <4.15
, bytestring
, bytestring
, mtl
, mtl
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment