2#ifdef HAS_BOTH_AESON_AND_BENCHMARKS
3{-# LANGUAGE PackageImports #-}
6{-# OPTIONS_GHC -fno-warn-unused-imports #-}
8module Typed.Common (load) where
13import Data.ByteString.Lazy as L
17#ifndef HAS_BOTH_AESON_AND_BENCHMARKS
18import Data.Aeson hiding (Result)
20import "aeson" Data.Aeson hiding (Result)
21import qualified "aeson-benchmarks" Data.Aeson as B
24load :: FromJSON a => FilePath -> IO a
26 mv <- eitherDecode' <$> L.readFile fileName
30 hPutStrLn stderr $ fileName ++ ": JSON decode failed - " ++ err
31 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