Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created July 20, 2022 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/f973f324e7cb1ff2d07e09bce518a159 to your computer and use it in GitHub Desktop.
Save exarkun/f973f324e7cb1ff2d07e09bce518a159 to your computer and use it in GitHub Desktop.
nullStorageServer :: StorageServerID -> StorageServer
nullStorageServer sid = StorageServer
{ storageServerID = sid
, \idx num off content -> return ()
, \idx num -> return ""
, \idx -> return mempty
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment