aboutsummaryrefslogtreecommitdiff
path: root/ch23/23_a_1/PodMainGUI.hs
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2025-09-12 09:33:50 +0200
committerJan Sucan <jan@jansucan.com>2025-09-12 09:33:50 +0200
commit36fc1e924d6920629d764d934e8939a48ac1ff0f (patch)
tree591b8958b3a500ba77cb73de6bddf45898caa50d /ch23/23_a_1/PodMainGUI.hs
parent305837683782841b0d93dabc61e7e6e19df220b4 (diff)
23_a_1: Patch the code for compiling with GHC from support of this chapter
Diffstat (limited to 'ch23/23_a_1/PodMainGUI.hs')
-rw-r--r--ch23/23_a_1/PodMainGUI.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ch23/23_a_1/PodMainGUI.hs b/ch23/23_a_1/PodMainGUI.hs
index 943be01..e557d8b 100644
--- a/ch23/23_a_1/PodMainGUI.hs
+++ b/ch23/23_a_1/PodMainGUI.hs
@@ -119,7 +119,7 @@ guiAdd gui dbh =
where procOK =
do url <- entryGetText (awEntry gui)
widgetHide (addWin gui) -- Remove the dialog
- add dbh url -- Add to the DB
+ addUrl dbh url -- Add to the DB
{-- /snippet guiAdd --}
{-- snippet statusWindow --}
@@ -184,7 +184,7 @@ guiFetch gui dbh =
{-- /snippet statusWindowFuncs --}
{-- snippet workerFuncs --}
-add dbh url =
+addUrl dbh url =
do addPodcast dbh pc
commit dbh
where pc = Podcast {castId = 0, castURL = url}