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
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE TypeOperators #-} | |
module PrototypeGenericService where | |
import Data.Kind | |
import Data.List qualified as List | |
data Method1 | |
data Method2 |
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
instance ( MonadIO m | |
, MonadError OperationError m | |
, Storage sto h ByteString m | |
, Storage sto h ByteString IO | |
, h ~ HbSync | |
, ForGroupKeySymm s | |
) => MerkleWriter (ToEncrypt 'Symm s ByteString) h sto m where | |
type instance ToBlockW (ToEncrypt 'Symm s ByteString) = ByteString |
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
{-# Language TemplateHaskell #-} | |
{-# Language AllowAmbiguousTypes #-} | |
{-# Language UndecidableInstances #-} | |
{-# Language MultiWayIf #-} | |
module QBLF.Proto where | |
import HBS2.Prelude.Plated | |
import HBS2.System.Logger.Simple | |
import HBS2.Clock | |
import HBS2.Hash |
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
module Main where | |
import HBS2.Prelude | |
import HBS2.Base58 | |
import HBS2.OrDie | |
import HBS2.Net.Proto.Types | |
import HBS2.Actors.Peer | |
import HBS2.Net.Proto.RefChan | |
import HBS2.Net.Messaging.Unix | |
import HBS2.Net.Proto.Definition() |
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
import Streaming.Prelude qualified as S | |
import Streaming qualified as S | |
-- FIXME: move-to-library | |
readBlob :: forall m . ( MonadIO m | |
, HasStorage m | |
, Block ByteString ~ ByteString | |
) | |
=> HashRef | |
-> m (Maybe ByteString) |
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
{-# Language TemplateHaskell #-} | |
module Main where | |
import HBS2.Prelude.Plated | |
import HBS2.Net.Proto.Types | |
import HBS2.Clock | |
import HBS2.Net.Messaging.TCP | |
import HBS2.Actors.Peer | |
import HBS2.System.Logger.Simple |
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
module Main where | |
import HBS2.Clock | |
import HBS2.Prelude.Plated | |
import Control.Concurrent.Async | |
import Control.Concurrent (myThreadId) | |
import UnliftIO.Exception | |
import System.IO | |
import Control.Monad |
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
module Main where | |
import HBS2.Clock | |
import Control.Concurrent.Async | |
import Control.Concurrent (myThreadId) | |
import UnliftIO.Exception | |
import System.IO | |
import Control.Monad |
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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
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
{- | |
Cache (Hash HbSync): 1.44s | |
Cache (SKey): 1.46s | |
HashMap (Hash HbSync): 0.17s | |
HashMap (Skey): 0.35s | |
Map (Hash HbSync): 0.34s | |
-} | |
module Main where |