-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e4876c
commit 727605d
Showing
8 changed files
with
79 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Anoma.Effect.Paths where | ||
|
||
import Juvix.Prelude | ||
|
||
clientRelFile :: Path Rel File | ||
clientRelFile = $(mkRelFile "apps/anoma_client/anoma_client") | ||
|
||
relProtoDir :: Path Rel Dir | ||
relProtoDir = $(mkRelDir "apps/anoma_protobuf/priv/protobuf") | ||
|
||
relProtoFile :: Path Rel File | ||
relProtoFile = $(mkRelFile "anoma.proto") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Anoma.Rpc.Base | ||
( module Anoma.Rpc.GrpcMethodUrl, | ||
) | ||
where | ||
|
||
import Anoma.Rpc.GrpcMethodUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Anoma.Rpc.GrpcMethodUrl | ||
( GrpcMethodUrl, | ||
mkGrpcMethodUrl, | ||
grpcMethodUrlToText, | ||
) | ||
where | ||
|
||
import Data.Text qualified as Text | ||
import Juvix.Prelude | ||
import Prelude (show) | ||
|
||
newtype GrpcMethodUrl = GrpcMethodUrl | ||
{ _grpcMethodUrl :: NonEmpty Text | ||
} | ||
|
||
mkGrpcMethodUrl :: NonEmpty Text -> GrpcMethodUrl | ||
mkGrpcMethodUrl = GrpcMethodUrl | ||
|
||
grpcMethodUrlToText :: GrpcMethodUrl -> Text | ||
grpcMethodUrlToText (GrpcMethodUrl u) = Text.intercalate "." (toList u) | ||
|
||
instance Show GrpcMethodUrl where | ||
show = unpack . grpcMethodUrlToText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters