Skip to content

Commit bd8b777

Browse files
committed
Warn users about non-ghcup channels
1 parent c07d28e commit bd8b777

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/GHCup/Download.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ import qualified Data.Text as T
8989
import qualified Data.Text.IO as T
9090
import qualified Data.Text.Encoding as E
9191
import qualified Data.Yaml.Aeson as Y
92+
import Data.List (isPrefixOf)
93+
import Control.Monad.IO.Class (liftIO)
9294

9395

9496

@@ -890,4 +892,4 @@ applyMirrors (DM ms) uri@(URI { uriAuthority = Just (Authority { authorityHost =
890892
}
891893
Just (DownloadMirror auth Nothing) ->
892894
uri { uriAuthority = Just auth }
893-
applyMirrors _ uri = uri
895+
applyMirrors _ uri = uri

0 commit comments

Comments
 (0)