2{-# LANGUAGE PackageImports #-}
4{-# OPTIONS_GHC -fno-warn-unused-imports #-}
6module Typed.Common (load) where
11import Data.ByteString.Lazy as L
15#ifndef HAS_BOTH_AESON_AND_BENCHMARKS
16import Data.Aeson hiding (Result)
18import "aeson" Data.Aeson hiding (Result)
19import qualified "aeson-benchmarks" Data.Aeson as B
22load :: FromJSON a => FilePath -> IO a
24 mv <- eitherDecode' <$> L.readFile fileName
28 hPutStrLn stderr $ fileName ++ ": JSON decode failed - " ++ err
29 exitWith (ExitFailure 1)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list