suntheme/app/Getters.hs
q9i f22d715b8e refactor: complete modularization
introduce Workers, Cache modules and shuffle around some existing functions
2024-08-01 20:15:32 -07:00

7 lines
185 B
Haskell

module Getters where
import Control.Exception (SomeException, try)
import Network.HTTP.Request (Response, get)
fetch :: String -> IO (Either SomeException Response)
fetch = try . get