Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
utf8-string
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
utf8-string
Commits
c6c1ad94
Commit
c6c1ad94
authored
15 years ago
by
emertens
Browse files
Options
Downloads
Patches
Plain Diff
Add System.Environment.UTF8 wrapper
bump to 0.3.5
parent
17c5d61d
No related branches found
Branches containing commit
Tags
v0.3.5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Data/String/UTF8.hs
+1
-2
1 addition, 2 deletions
Data/String/UTF8.hs
System/Environment/UTF8.hs
+25
-0
25 additions, 0 deletions
System/Environment/UTF8.hs
utf8-string.cabal
+2
-1
2 additions, 1 deletion
utf8-string.cabal
with
28 additions
and
3 deletions
Data/String/UTF8.hs
+
1
−
2
View file @
c6c1ad94
{-# LANGUAGE MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fallow-undecidable-instances #-}
{-# LANGUAGE MultiParamTypeClasses, UndecidableInstances #-}
module
Data.String.UTF8
(
-- * Representation
UTF8
...
...
This diff is collapsed.
Click to expand it.
System/Environment/UTF8.hs
0 → 100644
+
25
−
0
View file @
c6c1ad94
module
System.Environment.UTF8
(
getArgs
,
getProgName
,
getEnv
,
withArgs
,
withProgName
,
getEnvironment
)
where
import
Codec.Binary.UTF8.String
(
decodeString
)
import
qualified
System.Environment
as
Sys
getArgs
::
IO
[
String
]
getArgs
=
map
decodeString
`
fmap
`
Sys
.
getArgs
getProgName
::
IO
String
getProgName
=
decodeString
`
fmap
`
Sys
.
getProgName
getEnv
::
String
->
IO
String
getEnv
x
=
decodeString
`
fmap
`
Sys
.
getEnv
x
withArgs
::
[
String
]
->
IO
a
->
IO
a
withArgs
=
Sys
.
withArgs
withProgName
::
String
->
IO
a
->
IO
a
withProgName
=
Sys
.
withProgName
getEnvironment
::
IO
[(
String
,
String
)]
getEnvironment
=
map
f
`
fmap
`
Sys
.
getEnvironment
where
f
(
a
,
b
)
=
(
decodeString
a
,
decodeString
b
)
This diff is collapsed.
Click to expand it.
utf8-string.cabal
+
2
−
1
View file @
c6c1ad94
Name: utf8-string
Version: 0.3.
4
Version: 0.3.
5
Author: Eric Mertens
Maintainer: emertens@galois.com
License: BSD3
...
...
@@ -29,6 +29,7 @@ library
Exposed-modules: Codec.Binary.UTF8.String
Codec.Binary.UTF8.Generic
System.IO.UTF8
System.Environment.UTF8
Data.String.UTF8
Data.ByteString.UTF8
Data.ByteString.Lazy.UTF8
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